Authentication
Validate an API key and confirm which project it belongs to. Send your key in the X-API-Key header; on success the endpoint echoes back the key id, the owning user id, the project (workspace) id the key is scoped to, and when it was created. Use it as a connectivity/auth smoke test before calling any other endpoint.
curl --request GET \
--url 'https://api.nabrah.ai/api/ext/test' \
--header 'X-API-Key: <your-api-key>'// No example body for this response.Every /api/ext endpoint authenticates the same way. This endpoint is the quickest way to confirm your setup works.
In the dashboard open the workspace, go to the Developers tab, and generate a Web API key. The full key (prefixed nb_) is shown once at creation — copy and store it securely. Generate an Embed key instead only for browser/front-end use.
X-API-KeyPass it on every request as the header X-API-Key: nb_xxxxxxxxxxxxxxxxxxxx. There is no project_id parameter anywhere in this API — the key is bound to exactly one project/workspace, and that scope is derived from the key automatically.
X-API-Key200 with status "success" means the key is valid; the returned project_id tells you which workspace you are acting on. 401 means the key is missing or invalid.
Base URL: https://api.nabrah.ai/api — so the full URL for this call is https://api.nabrah.ai/api/ext/test
Common first calls once your key is verified:
GET /api/ext/tts/voices — the voice ids used for text-to-speech and for an agent’s voice.
GET /api/ext/agent — the agents available in this project and their ids.
GET /api/ext/tool — function-calling tools you can attach to agents.
X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
Successful Response
application/json