Skip to content
gist.link ↗

number

Query Phone API — POST https://phone.api.gist.link/graphql

The number query on the Phone API.

phone:query:number

The calling IAM key must hold this permission (or a wildcard that covers it: phone:query:* or phone:*) and the access token must have been minted with audience=phone. See Permissions.

type Query {
number(uuid: ID!): PhoneNumber!
}
Argument Type Required Description
uuid ID! Yes —

PhoneNumber! — see the Phone types reference.

Terminal window
curl https://phone.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Number($uuid: ID!) { number(uuid: $uuid) { uuid status currency } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON