Skip to content
gist.link ↗

activateCallFlow

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

Point a number at a flow; a null flowUuid reverts to default voicemail.

phone:mutation:activateCallFlow

The calling IAM key must hold this permission (or a wildcard that covers it: phone:mutation:* or phone:*) and the access token must have been minted with audience=phone. See Permissions.

type Mutation {
activateCallFlow(numberUuid: ID!, flowUuid: ID): PhoneNumber!
}
Argument Type Required Description
numberUuid ID! Yes —
flowUuid ID 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": "mutation ActivateCallFlow($numberUuid: ID!, $flowUuid: ID) { activateCallFlow(numberUuid: $numberUuid, flowUuid: $flowUuid) { uuid status currency } }",
"variables": {
"numberUuid": "01a01234-abcd-7000-9000-0123456789ab",
"flowUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON