Skip to main content

GET /v1/account/keys/{key_id}

Get details of a specific API key.

  • Method: GET
  • Path: /v1/account/keys/{key_id}
  • Auth: Bearer token (provisioning key) in Authorization header

Path Parameters

  • key_id (integer, required): The ID of the API key to retrieve

Example Request

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",
"is_enabled": true,
"credit_limit": 100.00
}

Authentication

Provide your provisioning key as a Bearer token:

Authorization: Bearer YOUR_PROVISIONING_KEY

Response Fields

  • 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
info

The actual API key value is never returned for security reasons. It's only shown once during creation.