API reference
shortUrl
The shortUrl query. Returns ShortUrl.
shortUrl(
code: String!
): ShortUrlArguments
| Name | Type | Description |
|---|---|---|
code |
String! |
Returns
Example
query ShortUrl($code: String!) {
shortUrl(code: $code) {
smartLink
target
url
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "query { shortUrl(...) { __typename } }"}'