v3

latestOpenAPI 3.1.02026-08-0150254154.0 KB
manage > v1 > projects > keys

Create a Project Key

Creates a new API key with specified settings for the project

post/v1/projects/{project_id}/keys

Path parameters

project_idstring required

The unique identifier of the project

Headers

Authorizationstring required

Use Authorization: Token <API_KEY> Example: Authorization: Token 12345abcdef

Request body

{"stackTrail":"components:schemas:CreateKeyV1Request:oneOf:0","oasType":"schema","type":"unknown","description":"Any type"}
OR
{"stackTrail":"components:schemas:CreateKeyV1Request:oneOf:1","oasType":"schema","type":"unknown","description":"Any type"}

Response

API key created successfully

api_key_idstring

The unique identifier of the API key

keystring

The API key

commentstring

A comment for the API key

scopesstring[]

The scopes for the API key

tagsstring[]

The tags for the API key

expiration_datestring date-time

The expiration date of the API key