Skip to content
gist.link ↗

completeDomainConnect

Mutation Settings API — POST https://settings.api.gist.link/graphql

Complete a Domain Connect “Connect automatically” flow after the DNS provider redirects back to the settings frontend. state is the HMAC token issued in the apply URL; error is the provider’s failure reason when the user cancelled or the apply failed. ROLE_ADMIN.

settings:mutation:completeDomainConnect

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

type Mutation {
completeDomainConnect(uuid: String!, state: String!, error: String): Domain!
}
Argument Type Required Description
uuid String! Yes —
state String! Yes —
error String No —

Domain! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CompleteDomainConnect($uuid: String!, $state: String!, $error: String) { completeDomainConnect(uuid: $uuid, state: $state, error: $error) { uuid status created_at updated_at } }",
"variables": {
"uuid": "example",
"state": "example",
"error": "example"
}
}
JSON