Skip to main content
POST
/
api
/
admin
/
api-keys
Create API Key
curl --request POST \
  --url https://otel.logclaw.ai/api/admin/api-keys \
  --header 'Content-Type: application/json' \
  --header 'x-logclaw-api-key: <api-key>' \
  --data '
{
  "name": "production-backend"
}
'
{
  "id": "key_ghi789",
  "name": "production-backend",
  "key": "lc_proj_5a33915526cd1af8238c6e690eeff9cec2611750d9914d2dd1cc7a87cf08c717",
  "createdAt": "2024-03-01T10:00:00Z"
}

Authorizations

x-logclaw-api-key
string
header
required

Your project API key (starts with lc_proj_)

Body

application/json
name
string
required

A descriptive label for the key

Example:

"production-backend"

Response

API key created

id
string
name
string
key
string

The full API key — shown only once

createdAt
string<date-time>