Skip to main content
POST
/
api
/
v1
/
agents
/
unregister
Unregister Agent Endpoint
curl --request POST \
  --url https://api.cognee.ai/api/v1/agents/unregister \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_session_name": "<string>"
}
'
{
  "activeAgents": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agent_session_name
string
required

The name used when registering the connection. Combined with the authenticated user's ID to identify which connection to deactivate.

Response

Successful Response

activeAgents
integer
required