Remove a domain connection

Stop connecting a domain, and drop the domain it became while that still waits for its nameservers. Refused once the domain's DNS is on TryGTM. Safe to repeat.

DELETEhttps://app.trygtm.com/api/v1/domains/connections/{connection_id}
Scope
write

Path parameters

connection_idstringrequired
The connection's id, from list_domain_connections.

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Request

curl -X DELETE https://app.trygtm.com/api/v1/domains/connections/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10 \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response

{
  "data": {
    "id": "5c6d7e8f-9012-4a3b-8c4d-5e6f70819203",
    "removed": true
  }
}

Was this page helpful?