Skip to content
gist.link ↗

registerVoipEndpoint

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

Register a browser or SIP endpoint; SIP credentials are returned exactly once.

phone:mutation:registerVoipEndpoint

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 {
registerVoipEndpoint(input: RegisterVoipEndpointInput!): VoipEndpointRegistration!
}
Argument Type Required Description
input RegisterVoipEndpointInput! Yes —

VoipEndpointRegistration! — 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 RegisterVoipEndpoint($input: RegisterVoipEndpointInput!) { registerVoipEndpoint(input: $input) { sipPassword } }",
"variables": {
"input": {
"kind": "example",
"label": "example"
}
}
}
JSON