Skip to content
Skip to Content

Get a project

GET
/projects/{projectId}

Authorization

bearer
headerAuthorizationBearer <token>

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

Path parameters

projectId*string

The project's id.

Response body

Get a project

application/json
  1. response
id*string
Formatuuid
organizationId*string
name*string
slug*string

The project's part of its services' opnl.app addresses.

visibility*string
Value in"organization""private"
createdBy*string|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
access*string

The caller's own access to this project.

Value in"none""view""deploy""admin"
environments*array<>
Example request
curl "https://openpanel.sh/api/v1/projects/$PROJECT_ID" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organizationId": "string",  "name": "string",  "slug": "string",  "visibility": "organization",  "createdBy": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "access": "none",  "environments": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "production": true    }  ]}