POST
/
project
/
{id}
/
key
curl --request POST \
  --url http://localhost:3003/project/{id}/key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "<string>",
  "roles": "<string>"
}'
{
  "key": {
    "id": "<string>",
    "label": "<string>",
    "roles": "<string>",
    "value": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization Token header using the Bearer scheme

Path Parameters

id
string
required

Unique identifier of the project

Body

application/json
label
string
required

A descriptive name for the API key

roles
string
required

Comma-separated list of permissions for this key

Response

200
application/json

API key created successfully

key
object