Skip to content
Skip to Content

Create a project

POST
/projects

Made with its production environment; you get admin access to it.

Authorization

bearer
headerAuthorizationBearer <token>

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

Header parameters

Idempotency-Key?string

Any unique string up to 255 characters. Sending the same request again with it returns the first answer instead of creating twice.

Lengthlength <= 255

Request body

application/json
  1. body
name*string

The project's name, up to 60 characters.

Length1 <= length <= 60
visibility?string

organization (default): everyone in the organization by their role; private: only people given access.

Value in"organization""private"

Response body

Create 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 -X POST "https://openpanel.sh/api/v1/projects" \  -H "Authorization: Bearer $OPENPANEL_TOKEN" \  -H "Content-Type: application/json" \  -d '{  "name": "string"}'
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    }  ]}