Skip to main content
POST
/
project
/
{id}
/
key
Create new API key
curl --request POST \
  --url https://api.basic.tech/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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.basic.tech/llms.txt

Use this file to discover all available pages before exploring further.

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

API key created successfully

API key created successfully

key
object