Skip to content
gist.link ↗

numbers

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

Phone numbers owned by the organization.

phone:query:numbers

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 {
numbers(includeReleased: Boolean): [PhoneNumber!]!
}
Argument Type Required Description
includeReleased Boolean No —

[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 Numbers($includeReleased: Boolean) { numbers(includeReleased: $includeReleased) { uuid status currency } }",
"variables": {
"includeReleased": true
}
}
JSON