Skip to main content

Create an API key

POST 

/api/v1/api-keys

Creates a new API key for the authenticated user. - project_id is required: every key is scoped to exactly one project. - If policy_ids is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - Otherwise the key inherits the user's permissions, confined to the key's project.

Request

Responses

API key created successfully. The raw key value is only returned once.