Skip to main content
POST
/
apikey
Create a new API key
curl --request POST \
  --url https://api.example.com/apikey \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "key": "<string>"
}

Body

application/json
name
string | null

Optional name for the API key

Response

Successful Response

id
string
required

Unique identifier for the created API key

key
string
required

The actual API key value