Keys
API key management
List API keys
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Query Parameters
Number of keys to skip for pagination
0 <= value <= 9007199254740991Whether to include disabled keys in the response
Filter API keys by workspace ID. Omit to list all accessible keys; when set, account-wide (unscoped) keys are also included.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidResponse Body
application/json
curl -X GET "https://api.eurouter.ai/api/v1/keys"{
"data": [
{
"name": "string",
"label": "string",
"type": "inference",
"limit": 0,
"limit_remaining": 0,
"limit_reset": "daily",
"include_byok_in_limit": true,
"usage": 0,
"usage_daily": 0,
"usage_weekly": 0,
"usage_monthly": 0,
"byok_usage": 0,
"byok_usage_daily": 0,
"byok_usage_weekly": 0,
"byok_usage_monthly": 0,
"disabled": true,
"created_at": "string",
"updated_at": "string",
"last_used": "string",
"hash": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",
"created_by_user_id": "string"
}
]
}Create API key
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.eurouter.ai/api/v1/keys" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"data": {
"name": "string",
"label": "string",
"type": "inference",
"limit": 0,
"limit_remaining": 0,
"limit_reset": "daily",
"include_byok_in_limit": true,
"usage": 0,
"usage_daily": 0,
"usage_weekly": 0,
"usage_monthly": 0,
"byok_usage": 0,
"byok_usage_daily": 0,
"byok_usage_weekly": 0,
"byok_usage_monthly": 0,
"disabled": true,
"created_at": "string",
"updated_at": "string",
"last_used": "string",
"hash": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",
"created_by_user_id": "string"
},
"key": "string"
}Get API key
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
Public identifier of the API key
Response Body
application/json
curl -X GET "https://api.eurouter.ai/api/v1/keys/string"{
"data": {
"name": "string",
"label": "string",
"type": "inference",
"limit": 0,
"limit_remaining": 0,
"limit_reset": "daily",
"include_byok_in_limit": true,
"usage": 0,
"usage_daily": 0,
"usage_weekly": 0,
"usage_monthly": 0,
"byok_usage": 0,
"byok_usage_daily": 0,
"byok_usage_weekly": 0,
"byok_usage_monthly": 0,
"disabled": true,
"created_at": "string",
"updated_at": "string",
"last_used": "string",
"hash": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",
"created_by_user_id": "string"
}
}Delete API key
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
Public identifier of the API key
Response Body
application/json
curl -X DELETE "https://api.eurouter.ai/api/v1/keys/string"{
"data": {
"success": true
}
}Get current API key
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Response Body
application/json
curl -X GET "https://api.eurouter.ai/api/v1/key"{
"data": {
"name": "string",
"label": "string",
"type": "inference",
"limit": 0,
"limit_remaining": 0,
"limit_reset": "daily",
"include_byok_in_limit": true,
"usage": 0,
"usage_daily": 0,
"usage_weekly": 0,
"usage_monthly": 0,
"byok_usage": 0,
"byok_usage_daily": 0,
"byok_usage_weekly": 0,
"byok_usage_monthly": 0,
"disabled": true,
"created_at": "string",
"updated_at": "string",
"last_used": "string",
"hash": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",
"created_by_user_id": "string"
}
}