EUrouter

Keys

API key management

List API keys

GET
/api/v1/keys

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Query Parameters

offset?number

Number of keys to skip for pagination

include_disabled?boolean

Whether to include disabled keys in the response

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/keys"
{
  "data": [
    {
      "name": "string",
      "label": "string",
      "limit": 0,
      "limit_remaining": 0,
      "limit_reset": "daily",
      "usage": 0,
      "usage_daily": 0,
      "usage_weekly": 0,
      "usage_monthly": 0,
      "disabled": true,
      "created_at": "string",
      "updated_at": "string",
      "last_used": "string",
      "hash": "string"
    }
  ]
}

Create API key

POST
/api/v1/keys

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Request Body

application/json

name*string

Display name for the API key

limit?number|null

Usage limit in credits (null = unlimited)

limit_reset?string|null

Period after which usage limits reset

Value in"daily" | "weekly" | "monthly"

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",
    "limit": 0,
    "limit_remaining": 0,
    "limit_reset": "daily",
    "usage": 0,
    "usage_daily": 0,
    "usage_weekly": 0,
    "usage_monthly": 0,
    "disabled": true,
    "created_at": "string",
    "updated_at": "string",
    "last_used": "string",
    "hash": "string"
  },
  "key": "string"
}

Get API key

GET
/api/v1/keys/{hash}

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Path Parameters

hash*string

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",
    "limit": 0,
    "limit_remaining": 0,
    "limit_reset": "daily",
    "usage": 0,
    "usage_daily": 0,
    "usage_weekly": 0,
    "usage_monthly": 0,
    "disabled": true,
    "created_at": "string",
    "updated_at": "string",
    "last_used": "string",
    "hash": "string"
  }
}

Delete API key

DELETE
/api/v1/keys/{hash}

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Path Parameters

hash*string

Public identifier of the API key

Response Body

application/json

curl -X DELETE "https://api.eurouter.ai/api/v1/keys/string"
{
  "data": {
    "success": true
  }
}