Skip to content

API Keys

POST https://api.bve.me/admin/api-keys
Authorization: Bearer admin_bve_YOUR_ADMIN_KEY
Content-Type: application/json
{
"name": "my-client",
"rpm_limit": 60,
"rpd_limit": 10000,
"monthly_limit": null,
"monthly_token_limit": null,
"allowed_models": null
}
FieldTypeRequiredDefaultDescription
namestringYesHuman-readable label (1–255 chars)
rpm_limitintegerNo60Max requests per minute
rpd_limitintegerNo10000Max requests per day
monthly_limitinteger | nullNonullMax requests per month (null = unlimited)
monthly_token_limitinteger | nullNonullMax tokens per month (null = unlimited)
allowed_modelsstring[] | nullNonullRestrict to specific model IDs (null = all)
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-client",
"key": "sk-bve-a1b2c3d4...",
"status": "active",
"rpm_limit": 60,
"rpd_limit": 10000,
"monthly_limit": null,
"monthly_token_limit": null,
"allowed_models": null,
"created_at": "2026-05-21T12:00:00.000Z"
}
Terminal window
curl -X POST https://api.bve.me/admin/api-keys \
-H "Authorization: Bearer admin_bve_YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-client",
"rpm_limit": 60,
"rpd_limit": 10000
}'
Terminal window
curl -X POST https://api.bve.me/admin/api-keys \
-H "Authorization: Bearer admin_bve_YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "trial-key",
"rpm_limit": 10,
"rpd_limit": 100,
"monthly_limit": 500
}'
Terminal window
curl -X POST https://api.bve.me/admin/api-keys \
-H "Authorization: Bearer admin_bve_YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "embeddings-only",
"allowed_models": ["text-embedding-3-small", "text-embedding-3-large"]
}'

GET https://api.bve.me/admin/api-keys
Authorization: Bearer admin_bve_YOUR_ADMIN_KEY

Returns all keys (active, suspended, and revoked).

[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-client",
"status": "active",
"rpm_limit": 60,
"rpd_limit": 10000,
"monthly_limit": null,
"monthly_token_limit": null,
"allowed_models": null,
"created_at": "2026-05-21T12:00:00.000Z",
"updated_at": "2026-05-21T12:00:00.000Z",
"revoked_at": null
}
]

The raw key (sk-bve-...) is not included in list responses.

Terminal window
curl https://api.bve.me/admin/api-keys \
-H "Authorization: Bearer admin_bve_YOUR_ADMIN_KEY"

POST https://api.bve.me/admin/api-keys/:id/revoke
Authorization: Bearer admin_bve_YOUR_ADMIN_KEY

Revocation is permanent and immediate. The key cannot be restored.

ParameterDescription
idUUID of the API key to revoke
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "revoked",
"revoked_at": "2026-05-21T13:00:00.000Z"
}
{
"error": {
"message": "API key not found",
"type": "invalid_request_error",
"code": "not_found"
}
}
Terminal window
curl -X POST https://api.bve.me/admin/api-keys/550e8400-e29b-41d4-a716-446655440000/revoke \
-H "Authorization: Bearer admin_bve_YOUR_ADMIN_KEY"