Skip to main content
GET
https://api.naga.ac
/
v1
/
account
/
keys
List API Keys
curl --request GET \
  --url https://api.naga.ac/v1/account/keys \
  --header 'Authorization: Bearer <token>'
{
  "keys": [
    {
      "id": 123,
      "name": "<string>",
      "created_at": "<string>",
      "expires_at": {},
      "is_enabled": true,
      "credit_limit": {}
    }
  ]
}
Provisioning Key Required This endpoint requires authentication with a provisioning key, not a regular API key.

Usage examples

import requests

response = requests.get(
    "https://api.naga.ac/v1/account/keys",
    headers={"Authorization": "Bearer YOUR_PROVISIONING_KEY"},
)
keys = response.json()
print(keys)

Response

{
  "keys": [
    {
      "id": 1,
      "name": "Production API Key",
      "created_at": "2025-01-15T10:30:00Z",
      "expires_at": null,
      "is_enabled": true,
      "credit_limit": 100.0
    },
    {
      "id": 2,
      "name": "Development API Key",
      "created_at": "2025-01-10T14:20:00Z",
      "expires_at": "2025-12-31T23:59:59Z",
      "is_enabled": true,
      "credit_limit": null
    }
  ]
}

Response Fields

keys
array
List of API key objects