cURL
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": {} }
Get details of a specific API key.
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)
{ "id": 1, "name": "Production API Key", "created_at": "2025-01-15T10:30:00Z", "expires_at": null, "is_enabled": true, "credit_limit": 100.0 }
null