Skip to content

Admin API Overview

The Admin API provides endpoints for provisioning API keys, listing them, revoking them, and querying usage statistics.

https://api.bve.me

All admin routes require the admin API key in the Authorization header:

Authorization: Bearer admin_bve_YOUR_ADMIN_KEY

The admin key is the ADMIN_API_KEY secret set on the Cloudflare Worker. It is separate from client API keys (sk-bve-...) and does not follow that format.

MethodPathDescription
POST/admin/api-keysCreate a new API key
GET/admin/api-keysList all API keys
POST/admin/api-keys/:id/revokeRevoke an API key
GET/admin/usageGet usage statistics

Admin endpoints use the same error envelope as the public API:

{
"error": {
"message": "Invalid admin API key",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}

See Errors for a full reference.