List custom domains
The project's domains, newest first.
GET/v1/domains
The project's domains, newest first. A key lists its own project's; a person whose role reaches only some projects names one.
A key with the network:read scope.
Request
curl "https://api.pod.mapier.ai/v1/domains" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project | query | string | No | The project to list. A key lists its own; a person whose role reaches only some projects names one. |
limit | query | integer | No | |
cursor | query | string | No | The next_cursor of the page before. Valid for 24 hours. |
Answer
200. A page of domains, newest first.
{
"data": [
{
"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
}
],
"next_cursor": null
}| Field | Type | Always | What it is |
|---|---|---|---|
data | Domain[] | Yes | |
next_cursor | string | null | Yes |
Errors
The refusals this call is known for: invalid, forbidden. 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.list() |
| Python | pod.network.domains.list() |