All Zentrix Agent Studio API requests require authentication via an API key. Keys are scoped to your account and grant access to all agents and instances under your profile.
Important: The full API key is shown only at creation time. After you close the dialog, only the last 4 characters are visible in the dashboard. If you lose a key, revoke it and generate a new one.
All Zentrix Agent Studio API keys use the nas_ prefix followed by a random alphanumeric string:
nas_7f3a9b2c1d4e5f6a7b8c9d0e1f2a3b4c
The prefix makes it easy to identify Zentrix Agent Studio keys in your codebase and secrets managers. Keys are SHA-256 hashed before storage in the database -- even our team cannot see your full key.
Include the key in the Authorization header of every API request using the Bearer scheme:
curl -X POST https://agentstudio.brtneura.com/api/widget/token \
-H "Authorization: Bearer nas_7f3a9b2c1d4e5f6a7b8c9d0e1f2a3b4c" \
-H "Content-Type: application/json" \
-d '{"agentId": "your-agent-uuid"}'In JavaScript:
const response = await fetch('https://agentstudio.brtneura.com/api/widget/token', {
method: 'POST',
headers: {
'Authorization': 'Bearer nas_7f3a9b2c1d4e5f6a7b8c9d0e1f2a3b4c',
'Content-Type': 'application/json',
},
body: JSON.stringify({ agentId: 'your-agent-uuid' }),
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const data = await response.json();If authentication fails, the API returns a 401 Unauthorized response:
{
"error": "Invalid API key",
"code": "UNAUTHORIZED"
}Common causes:
Authorization header was not included in the request.nas_.From the API Keys page you can:
Tip: Rotate your API keys periodically. Generate a new key, update your application to use it, then revoke the old key. This minimizes exposure if a key is accidentally leaked.
NEURA_API_KEY or similar). Never commit keys to version control.A Product by BRTNeura Technology LLP
Last updated: 2026-03-05