v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-01140309549.5 KB
projects
keys

Create a project key

Create a new API key for a project. The plaintext key is only returned once in the response. Requires manage permission on the project.

post/v0/projects/{project}/keys

Path parameters

projectstring required

The slug or UUID for a project.

Request body

namestring required
ttlinteger nullable

The time-to-live (TTL) for the key in seconds. If not provided, the key will not expire for over 128 years.

Response

successful creation

creationstring date-time required
expirationstring date-time required
keystring required
namestring required
projectstring uuid required
uuidstring uuid required