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

NameInTypeRequiredWhat it is
projectquerystringNoThe project to list. A key lists its own; a person whose role reaches only some projects names one.
limitqueryintegerNo
cursorquerystringNoThe next_cursor of the page before. Valid for 24 hours.

Answer

200. A page of domains, newest first.

200
{
  "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
}
FieldTypeAlwaysWhat it is
dataDomain[]Yes
next_cursorstring | nullYes

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

ClientCall
TypeScriptpod.network.domains.list()
Pythonpod.network.domains.list()