Menu QaldyDocs

domains

6 routes, from the API’s own OpenAPI document.

6 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
GET/​v1/​apps/​{id}/​domainsThe custom hostnames of an app or site, with the DNS records to add
POST/​v1/​apps/​{id}/​domainsAttach a hostname to an app or site (owner); returns the DNS records to add
DELETE/​v1/​apps/​{id}/​domains/​{domainId}Remove a hostname from an app or site (owner)
POST/​v1/​apps/​{id}/​domains/​{domainId}/​checkLook at DNS and the certificate now; on a failed hostname, start over
GET/​v1/​workspaces/​{ws}/​domainsEvery custom hostname in the workspace on an app you can open
POST/​v1/​workspaces/​{ws}/​sender-domain/​checkRead the public DNS of the domain apps send email from (builders)

Reference

GET /v1/apps/{id}/domains

The custom hostnames of an app or site, with the DNS records to add.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: can_view. Not for tokens
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
appIdstringyes
availablebooleanyes
unavailableobject or nullyes
unavailable.code"not_configured" · "disabled_for_workspace"yes
unavailable.messagestringyesup to 400 characters
unavailable.hintstringyesup to 400 characters
canManagebooleanyes
cnameTargetstring or nullyes
domainsobject[]yes
domains[].idstringyes1 to 64 characters
domains[].appIdstringyes1 to 64 characters
domains[].hostnamestringyes4 to 253 characters
domains[].state"pending_ownership" · "pending_dns" · "pending_cert" · "active" · "failed"yes
domains[].waiting"txt_missing" · "txt_mismatch" · "dns_unreachable" · "cname_missing" · "cname_elsewhere" · "cert_validating" · "cert_issuing" · "cert_deploying" · … or nullyes
domains[].observedstring or nullyesup to 300 characters
domains[].providerNotesstring[]yesup to 5 items
domains[].failure"timed_out" · "blocked" · "cert_failed" · "removed_upstream" · "provider_error" · null or nullyes
domains[].recordsobject[]yes
domains[].urlstring or nullyes
domains[].createdAtstring (date-time)yes
domains[].stateSincestring (date-time)yes
domains[].lastCheckedAtstring (date-time) or nullyes
domains[].deadlineAtstring (date-time) or nullyes
domains[].createdByobject or nullyes
limitsobjectyes
limits.perAppintegeryesat least 1
limits.perWorkspaceintegeryesat least 1
limits.usedInWorkspaceintegeryesat least 0

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/apps/{id}/domains

Attach a hostname to an app or site (owner); returns the DNS records to add.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: owner (a workspace admin owns every app). Not for tokens
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
hostnamestringyes1 to 300 characters

Response 200

FieldTypeRequiredNotes
idstringyes1 to 64 characters
appIdstringyes1 to 64 characters
hostnamestringyes4 to 253 characters
state"pending_ownership" · "pending_dns" · "pending_cert" · "active" · "failed"yes
waiting"txt_missing" · "txt_mismatch" · "dns_unreachable" · "cname_missing" · "cname_elsewhere" · "cert_validating" · "cert_issuing" · "cert_deploying" · … or nullyes
observedstring or nullyesup to 300 characters
providerNotesstring[]yesup to 5 items
failure"timed_out" · "blocked" · "cert_failed" · "removed_upstream" · "provider_error" · null or nullyes
recordsobject[]yes
records[].purpose"ownership" · "route" · "certificate"yes
records[].type"TXT" · "CNAME"yes
records[].namestringyes1 to 300 characters
records[].valuestringyes1 to 600 characters
records[].seen"done" · "waiting" · "unknown"yes
urlstring or nullyes
createdAtstring (date-time)yes
stateSincestring (date-time)yes
lastCheckedAtstring (date-time) or nullyes
deadlineAtstring (date-time) or nullyes
createdByobject or nullyes
createdBy.idstringyes
createdBy.namestringyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/apps/{id}/domains/{domainId}

Remove a hostname from an app or site (owner).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: owner. Not for tokens
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters
domainIdpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
oktrueyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/apps/{id}/domains/{domainId}/check

Look at DNS and the certificate now; on a failed hostname, start over.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: can_edit. Not for tokens
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters
domainIdpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyes1 to 64 characters
appIdstringyes1 to 64 characters
hostnamestringyes4 to 253 characters
state"pending_ownership" · "pending_dns" · "pending_cert" · "active" · "failed"yes
waiting"txt_missing" · "txt_mismatch" · "dns_unreachable" · "cname_missing" · "cname_elsewhere" · "cert_validating" · "cert_issuing" · "cert_deploying" · … or nullyes
observedstring or nullyesup to 300 characters
providerNotesstring[]yesup to 5 items
failure"timed_out" · "blocked" · "cert_failed" · "removed_upstream" · "provider_error" · null or nullyes
recordsobject[]yes
records[].purpose"ownership" · "route" · "certificate"yes
records[].type"TXT" · "CNAME"yes
records[].namestringyes1 to 300 characters
records[].valuestringyes1 to 600 characters
records[].seen"done" · "waiting" · "unknown"yes
urlstring or nullyes
createdAtstring (date-time)yes
stateSincestring (date-time)yes
lastCheckedAtstring (date-time) or nullyes
deadlineAtstring (date-time) or nullyes
createdByobject or nullyes
createdBy.idstringyes
createdBy.namestringyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/workspaces/{ws}/domains

Every custom hostname in the workspace on an app you can open.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: member. Not for tokens
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
availablebooleanyes
unavailableobject or nullyes
unavailable.code"not_configured" · "disabled_for_workspace"yes
unavailable.messagestringyesup to 400 characters
unavailable.hintstringyesup to 400 characters
cnameTargetstring or nullyes
domainsobject[]yes
domains[].idstringyes1 to 64 characters
domains[].appIdstringyes1 to 64 characters
domains[].hostnamestringyes4 to 253 characters
domains[].state"pending_ownership" · "pending_dns" · "pending_cert" · "active" · "failed"yes
domains[].waiting"txt_missing" · "txt_mismatch" · "dns_unreachable" · "cname_missing" · "cname_elsewhere" · "cert_validating" · "cert_issuing" · "cert_deploying" · … or nullyes
domains[].observedstring or nullyesup to 300 characters
domains[].providerNotesstring[]yesup to 5 items
domains[].failure"timed_out" · "blocked" · "cert_failed" · "removed_upstream" · "provider_error" · null or nullyes
domains[].recordsobject[]yes
domains[].urlstring or nullyes
domains[].createdAtstring (date-time)yes
domains[].stateSincestring (date-time)yes
domains[].lastCheckedAtstring (date-time) or nullyes
domains[].deadlineAtstring (date-time) or nullyes
domains[].createdByobject or nullyes
domains[].appNamestringyes
domains[].appSlugstringyes
domains[].kind"app" · "site"yes
limitsobjectyes
limits.perWorkspaceintegeryesat least 1
limits.usedInWorkspaceintegeryesat least 0

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/sender-domain/check

Read the public DNS of the domain apps send email from (builders).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: builder. Not for tokens
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
domainstringyes1 to 300 characters
provider"resend" · "postmark" · "other"yes
selectorstringup to 80 characters

Response 200

FieldTypeRequiredNotes
domainstringyes
provider"resend" · "postmark" · "other"yes
checkedAtstring (date-time)yes
checksobject[]yes
checks[].id"dkim" · "spf" · "return_path" · "dmarc"yes
checks[].status"found" · "missing" · "unclear" · "skipped"yes
checks[].namestringyesup to 300 characters
checks[].foundstring or nullyesup to 200 characters
checks[].note"dns_unreachable" · "selector_needed" · "other_policy" · "weak_policy" · null or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.