> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Account management API

> Manage API keys, projects, webhooks and account usage programmatically.

Use a **management key** (`nj_mk_...`) created by the account owner under **Management keys** in [Developers → Keys](https://www.ninjachat.ai/developers/keys), after email verification. Inference keys (`nj_sk_...`) cannot call management endpoints; management keys cannot generate content.

## Check your access

```bash cURL theme={null}
curl https://www.ninjachat.ai/api/v1/management/whoami \
  -H "Authorization: Bearer $NINJACHAT_MANAGEMENT_KEY"
```

Keep management keys on your server. Requests are limited to the key's account and granted permissions.

## Available operations

| Resource          | Operations                                                 |
| ----------------- | ---------------------------------------------------------- |
| API keys          | List, create, retrieve, update, rotate and revoke.         |
| Projects          | List, create, retrieve, update and archive.                |
| Webhooks          | List, create, update, delete, test and inspect deliveries. |
| Usage and balance | Read account usage and available credit.                   |
| Audit             | Review account management activity.                        |

Open **API Reference → Account management** for request schemas, permissions and responses. Start with read-only calls before automating key rotation or project changes.
