Skip to content
gist.link ↗

calls

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

Call history (paginated, filterable).

phone:query:calls

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 {
calls(filter: CallFilter, sort: SortInput, first: Int, after: String): CallConnection!
}
Argument Type Required Description
filter CallFilter No —
sort SortInput No —
first Int No —
after String No —

CallConnection! — 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 Calls($filter: CallFilter, $sort: SortInput, $first: Int, $after: String) { calls(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { uuid direction fromAddress toAddress status disposition durationSeconds recordingUrl } } } }",
"variables": {
"filter": {
"numberUuid": "01a01234-abcd-7000-9000-0123456789ab",
"direction": "example",
"disposition": "example"
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON