Skip to main content
GET
https://api.naga.ac
/
v1
/
account
/
keys
/
{key_id}
Get API Key
curl --request GET \
  --url https://api.naga.ac/v1/account/keys/{key_id} \
  --header 'Authorization: Bearer <token>'
{
  "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.

Path Parameters

key_id
integer
required
The ID of the API key to retrieve

Usage examples

import requests

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

key_details = response.json()
print(key_details)

Response

{
  "id": 1,
  "name": "Production API Key",
  "created_at": "2025-01-15T10:30:00Z",
  "expires_at": null,
  "is_enabled": true,
  "credit_limit": 100.0
}

Response Fields

id
integer
Unique key identifier
name
string
Key name
created_at
string
ISO 8601 timestamp
expires_at
string | null
Optional expiration datetime (ISO 8601). null means no expiration.
is_enabled
boolean
Whether the key is active
credit_limit
number | null
Optional spending limit (null means no limit)
The actual API key value is never returned for security reasons. It’s only shown once during creation.