API Keys

API keys authenticate requests to the public headless CMS API. They are stored as SHA-256 hashes — shown only once on creation.

Create API Key

POST /api/v1/api-keys
{ "name": "My Website", "scopes": ["blogs:read"] }

Response:
{
  "data": {
    "id": "clxxx",
    "name": "My Website",
    "keyPrefix": "bsk_a1b2c3d4",
    "key": "bsk_a1b2c3d4e5f6..."  // shown once only!
  }
}

List Keys

GET /api/v1/api-keys
// Returns keys without the raw key value

Revoke Key

DELETE /api/v1/api-keys/:id

Using Your Key

curl https://yourdomain.com/api/v1/public/blogs \
  -H "X-API-Key: bsk_your_key_here"

Available Scopes

ScopeAccess
blogs:readRead published blogs
blogs:writeCreate and update blogs
media:readRead media library