Get a custom domain

A domain of another project is `not_found`, as a sandbox is.

GET/v1/domains/{domain_id}

A domain of another project is not_found, as a sandbox is.

A key with the network:read scope.

Request

curl "https://api.pod.mapier.ai/v1/domains/dom_3ahrz6dmv29gqy5ckt18fpx4b" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
domain_idpathstringYes

Answer

200. The domain.

200
{
  "id": "dom_3ahrz6dmv29gqy5ckt18fpx4b",
  "project_id": "prj_3ahrz6dmv29gqy5ckt18fp",
  "name": "example",
  "wildcard": false,
  "target": {
    "sandbox_id": null,
    "port": 1
  },
  "state": "pending_dns",
  "verification": null,
  "certificate": null,
  "failure": null,
  "warning": null,
  "created_at": null,
  "changed_at": null
}
FieldTypeAlwaysWhat it is
idstringYes
project_idstringYes
namestringYesLowercase ASCII, an internationalised name in its xn-- form. A leading *. makes a wildcard that matches one label. Pod's own zones (mapier.ai, and mapier.dev, the content domain) and public suffixes are refused.
wildcardbooleanYes
targetDomainTargetYes
state"pending_dns" | "issuing" | "active" | "failed"Yespending_dns until the records are seen, issuing while the certificate is made, then active; failed says why in failure. Treat a value you do not know as pending.
verificationDomainVerification | nullYesThe records to add; null once nothing is left to add.
certificateDomainCertificate | nullYesThe certificate served; null until one is issued.
failurestring | nullNoWhy the domain is failed.
warningstring | nullNoWhat went missing from an active domain's records.
created_atstring | nullYes
changed_atstring | nullYes

Errors

The refusals this call is known for: forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.network.domains.get(id)
Pythonpod.network.domains.get(id)