Skip to content
Skip to Content

List a project's domains

GET
/projects/{projectId}/domains

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

projectId*string

The project's id.

Query parameters

limit?integer

How many items to return, 1 to 100. Default 50.

Range1 <= value <= 100
cursor?string

The nextCursor of the previous page.

Lengthlength <= 500

Response body

List a project's domains

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example request
curl "https://openpanel.sh/api/v1/projects/$PROJECT_ID/domains" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "serviceId": "8f8bb40f-b96b-40fe-9064-5031fbe483f9",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "host": "string",      "kind": "opnl",      "port": 0,      "verifyToken": "string",      "verifiedAt": "2019-08-24T14:15:22Z",      "certificateSource": "auto",      "certificateExpiresAt": "2019-08-24T14:15:22Z",      "dnsZoneId": "1f40467d-670b-4465-a735-818bec481113",      "dnsProblem": "string",      "createdAt": "2019-08-24T14:15:22Z",      "records": [        {          "type": "CNAME",          "name": "string",          "value": "string",          "purpose": "string"        }      ]    }  ],  "nextCursor": "string"}