List a project's domains
GET
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
projectId*stringThe project's id.
limit?integerHow many items to return, 1 to 100. Default 50.
Range
1 <= value <= 100cursor?stringThe nextCursor of the previous page.
Length
length <= 500List a project's domains
application/json- response
data*array<>nextCursor*|Pass as cursor for the next page; null on the last.
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"}A deployment's build and deploy logs GET
The build's output and the rollout's log, kept with the deployment, so they read even while its servers are offline. Each phase keeps its first 2 MiB; a longer build also keeps its last 200 lines.
Add a domain to a service POST
A name under opnl.app works at once. Your own domain works once its DNS records are in place: a CNAME to edge.openpanel.sh and a TXT record that proves it is yours (both in the answer's records).