Keys
Create, list, inspect and delete EUrouter API keys, and look up the key that authenticates the current request.
List API keys
Retrieve the API keys associated with your account. Organization admins see all of the organization’s keys; members see their own.
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",
"default_routing_rule_id": "11cbcf8c-fa2f-41cf-8b65-73d8cd662eee"
}
]
}Create API key
Create a new API key. The full key is only returned once upon creation.
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",
"default_routing_rule_id": "11cbcf8c-fa2f-41cf-8b65-73d8cd662eee"
},
"key": "string"
}Get API key
Retrieve details of a specific API key by its hash.
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",
"default_routing_rule_id": "11cbcf8c-fa2f-41cf-8b65-73d8cd662eee"
}
}Delete API key
Permanently delete an API key. This action cannot be undone.
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
Retrieve metadata about the API key used to authenticate this request, including its usage and spend limits. Requires API key authentication.
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",
"default_routing_rule_id": "11cbcf8c-fa2f-41cf-8b65-73d8cd662eee"
}
}