Skip to content
gist.link ↗

contactNumbers

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

Outside numbers the org has called, been called by, or texted with (most recent first).

phone:query:contactNumbers

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 {
contactNumbers(search: String, first: Int): [ContactNumber!]!
}
Argument Type Required Description
search String No —
first Int No —

[ContactNumber!]! — 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 ContactNumbers($search: String, $first: Int) { contactNumbers(search: $search, first: $first) { e164 lastActivityAt lastDirection lastChannel callCount missedCount messageCount } }",
"variables": {
"search": "example",
"first": 10
}
}
JSON