Skip to content
gist.link ↗

startCall

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

Server-initiated click-to-call from an owned number.

phone:mutation:startCall

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 {
startCall(numberUuid: ID!, to: String!): Call!
}
Argument Type Required Description
numberUuid ID! Yes —
to String! Yes —

Call! — 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 StartCall($numberUuid: ID!, $to: String!) { startCall(numberUuid: $numberUuid, to: $to) { uuid direction fromAddress toAddress status disposition durationSeconds recordingUrl } }",
"variables": {
"numberUuid": "01a01234-abcd-7000-9000-0123456789ab",
"to": "example"
}
}
JSON