Use the account API-key endpoints when you need to manage inference keys programmatically. This is the right workflow when you want separate keys for production, staging, development, CI, or customer-specific workloads.Documentation Index
Fetch the complete documentation index at: https://docs.naga.ac/llms.txt
Use this file to discover all available pages before exploring further.
Authentication reminder
These endpoints require your provisioning key, not a standard inference key.Create A Key
Other Operations
| Operation | Endpoint | Use it for |
|---|---|---|
| List keys | GET /v1/account/keys | inventory and auditing |
| Get one key | GET /v1/account/keys/{key_id} | inspect metadata for one key |
| Update a key | PATCH /v1/account/keys/{key_id} | rename, disable, or change limits |
| Delete a key | DELETE /v1/account/keys/{key_id} | revoke a key permanently |
Practical Patterns
Environment Separation
Create separate keys for:- production
- staging
- development
- testing or CI
Budget Control
Usecredit_limit to cap how much a key can spend. This is useful for:
- sandbox environments
- short-lived experiments
- customer-isolated workloads
Key Rotation And Revocation
- disable or update keys when rotating credentials
- delete keys that are no longer needed
- remember that deleting a key is irreversible for any client currently using it
Common mistakes
- using a normal API key instead of a provisioning key
- forgetting to store the plaintext key at creation time
- sharing one key across unrelated environments when you need clear attribution