Skip to content
gist.link ↗

customDomainSetup

Query Deploy API — POST https://deploy.api.gist.link/graphql

Guide data for connecting hostname (under the settings domain domainUuid) to a project: the DNS record to add, detected DNS host, whether automatic setup is available, and live progress. Any org member.

deploy:query:customDomainSetup

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

type Query {
customDomainSetup(projectId: Int!, domainUuid: String!, hostname: String!): CustomDomainSetup!
}
Argument Type Required Description
projectId Int! Yes —
domainUuid String! Yes —
hostname String! Yes —

CustomDomainSetup! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query CustomDomainSetup($projectId: Int!, $domainUuid: String!, $hostname: String!) { customDomainSetup(projectId: $projectId, domainUuid: $domainUuid, hostname: $hostname) { hostname zone record_type record_name record_value is_apex dns_host_key dns_host_name } }",
"variables": {
"projectId": 10,
"domainUuid": "example",
"hostname": "Example"
}
}
JSON