cURL
curl --request POST \ --url https://ninjachat.ai/api/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "My Production Key" } '
{ "key": "<string>", "id": "<string>", "prefix": "<string>", "name": "<string>", "message": "<string>" }
Create a new API key. You can have up to 5 active keys per account.
API key starting with nj_sk_
Key name. Alphanumeric characters, spaces, hyphens, and underscores.
1 - 64
API key created. The full key is only returned once.
Full API key. Shown only once.