Create an API key
POST/api/v1/api-keys
Creates a new API key for the authenticated user. - If project_id is provided, the key is scoped to that project. - If policy_ids is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - If neither is provided, the key inherits the user's full permissions.
Request
Responses
- 201
- 400
- 401
API key created successfully. The raw key value is only returned once.
Bad request (missing name, invalid project or policy IDs)
Unauthorized