All endpoints require authentication with a valid API key.
List API Keys
GET https://routerbase.kuaibaike.com/api/v1/api-keys
Returns all API keys for the authenticated user (secret values are masked).
Create API Key
POST https://routerbase.kuaibaike.com/api/v1/api-keys
Request Body
A human-readable label for the key.
Max requests per minute. No limit if omitted.
Max requests per hour. No limit if omitted.
Max requests per day. No limit if omitted.
Response
{
"id": "key_01HXYZ",
"name": "production",
"key": "sk-t0-pub123-secret456",
"created_at": "2025-01-15T10:00:00Z"
}
The full key value is returned only once at creation time. Store it immediately.
Update API Key
PUT https://routerbase.kuaibaike.com/api/v1/api-keys/{id}
Update the name, rate limits, or IP whitelist of an existing key.
Delete API Key
DELETE https://routerbase.kuaibaike.com/api/v1/api-keys/{id}
Immediately revokes the key. Any in-flight requests using this key will fail.