Skip to content
gist.link ↗

voipEndpoints

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

The calling user’s registered VOIP endpoints.

phone:query:voipEndpoints

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 {
voipEndpoints: [VoipEndpoint!]!
}

This query takes no arguments.

[VoipEndpoint!]! — 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 VoipEndpoints { voipEndpoints { uuid kind label sipDomain sipUsername ringEnabled createdAt } }",
"variables": {}
}
JSON