Skip to content
gist.link ↗

handoffRules

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

The handoffRules query on the Phone API.

phone:query:handoffRules

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 {
handoffRules(numberUuid: ID!): [HandoffRule!]!
}
Argument Type Required Description
numberUuid ID! Yes —

[HandoffRule!]! — 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 HandoffRules($numberUuid: ID!) { handoffRules(numberUuid: $numberUuid) { uuid numberUuid trigger emailRecipients createTicket messageTemplate active createdAt } }",
"variables": {
"numberUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON