Skip to main content
Delete all sessions belonging to the authenticated user for a specified agent.

Query Parameters

agent_key
string
required
Agent key identifying the agent whose sessions will be removed.
curl -X DELETE "https://api.artaios.ai/api/v1/sessions/from-agent/?agent_key=my_agent" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

Returns the number of deleted sessions.
{
  "deleted": 5
}