GET /v1/account/keys
List all API keys for the authenticated account.
- Method: GET
- Path: /v1/account/keys
- Auth: Bearer token (provisioning key) in Authorizationheader
Provisioning Key Required
This endpoint requires authentication with a provisioning key, not a regular API key.
Example Request
- Python
- Node.js
- cURL
import requests
response = requests.get(
    "https://api.naga.ac/v1/account/keys",
    headers={"Authorization": "Bearer YOUR_PROVISIONING_KEY"}
)
keys = response.json()
print(keys)
const response = await fetch("https://api.naga.ac/v1/account/keys", {
  headers: {
    "Authorization": "Bearer YOUR_PROVISIONING_KEY"
  }
});
const keys = await response.json();
console.log(keys);
curl https://api.naga.ac/v1/account/keys \
  -H "Authorization: Bearer YOUR_PROVISIONING_KEY"
Response
{
  "keys": [
    {
      "id": 1,
      "name": "Production API Key",
      "created_at": "2025-01-15T10:30:00Z",
      "is_enabled": true,
      "credit_limit": 100.00
    },
    {
      "id": 2,
      "name": "Development API Key",
      "created_at": "2025-01-10T14:20:00Z",
      "is_enabled": true,
      "credit_limit": null
    }
  ]
}
Authentication
Provide your provisioning key as a Bearer token:
Authorization: Bearer YOUR_PROVISIONING_KEY
Response Fields
- keys(array): List of API key objects- id(integer): Unique key identifier
- name(string): Key name
- created_at(string): ISO 8601 timestamp
- is_enabled(boolean): Whether the key is active
- credit_limit(number | null): Optional spending limit