BrainUs LogoBrainUs AI
API Key Management

Get API Key Details

Get details of a specific API key by ID

GET
/api/v1/dev/keys/{key_id}

Authorization

BearerAuth
AuthorizationBearer <token>

JWT token authentication for API key management

In: header

Path Parameters

key_id*string

API key ID

Formatuuid

Response Body

application/json

curl -X GET "https://api.brainus.lk/api/v1/dev/keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "Production API Key",
  "key_prefix": "sk_live_",
  "is_active": true,
  "created_at": "2019-08-24T14:15:22Z",
  "last_used_at": "2019-08-24T14:15:22Z",
  "plan": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "Free",
    "description": "string",
    "rate_limit_per_minute": 10,
    "rate_limit_per_day": 1000,
    "monthly_quota": 10000,
    "price_lkr": 0,
    "allowed_models": [
      "string"
    ]
  }
}
Empty
Empty