Look at a custom domain's records again now
Pod looks again on its own, and daily once a domain is active (`warning` says what went missing).
POST/v1/domains/{domain_id}/check
Pod looks again on its own, and daily once a domain is active (warning says what went missing). This call looks now and answers the domain as it then is.
A key with the network:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/domains/dom_3ahrz6dmv29gqy5ckt18fpx4b/check" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
domain_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
200. The domain after the check.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
project_id | string | Yes | |
name | string | Yes | Lowercase 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. |
wildcard | boolean | Yes | |
target | DomainTarget | Yes | |
state | "pending_dns" | "issuing" | "active" | "failed" | Yes | pending_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. |
verification | DomainVerification | null | Yes | The records to add; null once nothing is left to add. |
certificate | DomainCertificate | null | Yes | The certificate served; null until one is issued. |
failure | string | null | No | Why the domain is failed. |
warning | string | null | No | What went missing from an active domain's records. |
created_at | string | null | Yes | |
changed_at | string | null | Yes |
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
| Client | Call |
|---|---|
| TypeScript | pod.network.domains.check(id) |
| Python | pod.network.domains.check(id) |