Analysis groups
Links a single agent to the analysis group identified by analysis_group_id and returns the new link_id. This is the analysis-side counterpart to the agent linking endpoints and is convenient when you want to attach one specific agent. The agent must already exist (create it with POST /api/ext/agent). Save the returned link_id to unlink later via DELETE /api/ext/analysis/link/{link_id}.
curl --request POST \
--url 'https://api.nabrah.ai/api/ext/analysis/<analysis_group_id>/agent' \
--header 'X-API-Key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "018f3a2b-9c4d-7e1a-bf52-0a1b2c3d4e5f"
}'{
"link_id": "00000000-0000-4000-8000-000000000000"
}analysis_group_id (path) comes from GET /api/ext/analysis. agent_id (body) comes from GET /api/ext/agent.
link_idReturns { "link_id": "..." }. Use this to remove the link with DELETE /api/ext/analysis/link/{link_id}. To link many agents at once, use POST /api/ext/analysis/{analysis_group_id}/agents instead.
link_idX-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
analysis_group_idstringrequiredUUID of the analysis group to link an agent to.
Get this from GET /api/ext/analysis or from the create response (POST /api/ext/analysis).
Link one agent to this analysis group.
{
"agent_id": "018f3a2b-9c4d-7e1a-bf52-0a1b2c3d4e5f"
}Successful Response
application/json
Validation Error
application/json