GET /admin/api-keys

Get list of all API keys (keys are masked for security)

Responses

  • 200 application/json

    API keys retrieved

    Hide response attributes Show response attributes object
    • status boolean
    • data array[object]
      Hide data attributes Show data attributes object
      • id integer
      • api_key_masked string
      • customer_name string
      • customer_email string
      • device_count integer
      • max_devices integer
      • rate_limit_per_hour integer
      • is_active boolean
GET /admin/api-keys
curl \
 --request GET 'http://localhost:7001/admin/api-keys' \
 --header "X-Admin-Secret: $API_KEY"
Response examples (200)
{
  "status": true,
  "data": [
    {
      "id": 1,
      "api_key_masked": "ak_a1b2...o5p6",
      "customer_name": "Acme Corp",
      "customer_email": "admin@acme.com",
      "device_count": 3,
      "max_devices": 10,
      "rate_limit_per_hour": 1000,
      "is_active": true
    }
  ]
}