SDK reference
Domains
GET/
Lists custom domains, and target: the hostname to point their CNAME records at.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/domains' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a custom domain to a Serverless App Service (projectId) or a status page (statusPageId) and returns the DNS record to create.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/domains' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"hostname": "Example"
}'POST/
Checks the domain's certificate and updates its status.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/domains/{hostname}/verify' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates the domain's records with the org's connected Cloudflare token, then checks right away. Create-only: a record already pointing elsewhere is replaced only for an owner or admin (a move's second click, say); for anyone else nothing is written and the answer names it (409), so the connection never repoints a live record for someone who may only add one.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/domains/{hostname}/cloudflare' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Moves a domain to another Serverless App Service of the org, or makes it redirect to another domain of its Serverless App Service (redirectTo: null serves the Serverless App Service again). The edge route changes right away.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/domains/{hostname}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"projectId": "<projectId>",
"redirectTo": "example"
}'DELETE/
Removes a custom domain: its route and its certificate.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/domains/{hostname}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Whether Cloudflare is connected (by sign-in or API token), the zones it can see, whether a sign-in grant expired, and whether sign-in is available. Credentials are never returned.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/cloudflare' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Completes the OAuth flow. The state is consumed first (one use), then checked against this user and org. With error instead of code (the user declined), it only consumes the state and returns where to go back to; retry says to start again without offline access.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/cloudflare/oauth' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"state": "example"
}'PUT/
Connects a Cloudflare API token (Zone → DNS → Edit) for adding domain records. The token is checked against Cloudflare, encrypted and stored; it must see at least one zone.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/cloudflare' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"token": "example"
}'DELETE/
Disconnects Cloudflare: revokes a sign-in grant at Cloudflare (best effort) and deletes the stored credentials.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/cloudflare' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Search domains to register
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/search?q=example' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/quotes' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"domain": "example"
}'POST/
Register a domain
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/registrations' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"quoteId": "<quoteId>",
"domain": "example",
"total": 1,
"currency": "example",
"phone": "example"
}'GET/
List registered domains
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/registrations' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Get a registered domain
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/registrations/{domain}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Change a domain's auto-renew
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/registrar/registrations/{domain}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"autoRenew": true
}'