Skip to content
View Markdown

Create a project API key

POST/v1/projects/{project}/api-keys
POST
/v1/projects/{project}/api-keys
curl --request POST \
--url https://api.wabe.sh/v1/projects/779742ad-cd09-4e1c-9170-f20968b344d4/api-keys \
--header 'Authorization: Bearer <token>'
project
required
string format: uuid

Example

779742ad-cd09-4e1c-9170-f20968b344d4

Project ID.

Key metadata and the new bearer secret. Copy the secret from this response.

Media typeapplication/json
object
id
required
string format: uuid

Example

779742ad-cd09-4e1c-9170-f20968b344d4
project_id
required
string format: uuid

Example

779742ad-cd09-4e1c-9170-f20968b344d4
display_prefix
required
string

Example

ncp_abc12345
created_at
required
string format: date-time

Example

2026-11-09T12:00:00Z
revoked_at
required
string | null format: date-time

Example

null
secret
required

Project API key. Returned once.

string

Example

ncp_YOUR_PROJECT_API_KEY

Missing or invalid dashboard login JWT.

Media typeapplication/json
object
error
required
string
message
required
string

Project or key not found in the current organization.

Media typeapplication/json
object
error
required
string
message
required
string