Create a project
POST
Made with its production environment; you get admin access to it.
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
Idempotency-Key?stringAny unique string up to 255 characters. Sending the same request again with it returns the first answer instead of creating twice.
Length
length <= 255application/json- body
name*stringThe project's name, up to 60 characters.
Length
1 <= length <= 60visibility?stringorganization (default): everyone in the organization by their role; private: only people given access.
Value in
"organization""private"Create a project
application/json- response
id*stringFormat
uuidorganizationId*stringname*stringslug*stringThe project's part of its services' opnl.app addresses.
visibility*stringValue in
"organization""private"createdBy*string|nullcreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timeaccess*stringThe caller's own access to this project.
Value in
"none""view""deploy""admin"environments*array<>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 } ]}