Skip to main content
POST
/
api
/
v2
/
agents
/
{agent_id}
/
deactivate
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/deactivate" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "session_duration_minutes": 135,
  "memories_stored": 12,
  "memories_recalled": 8
}

Overview

Close the current session for an agent.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}

Path Parameters

agent_id
string
required
Agent identifier.
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/deactivate" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "session_duration_minutes": 135,
  "memories_stored": 12,
  "memories_recalled": 8
}

Response Fields

agent_id
string
Agent ID.
session_duration_minutes
integer
Session length.
memories_stored
integer
Stored memory count.
memories_recalled
integer
Recalled memory count.