Skip to main content
POST
/
api
/
v2
/
agents
/
{agent_id}
/
activate
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/activate" \
  -H "Authorization: Bearer your_api_key"
{
  "agent_id": "customer-support",
  "session_token": "eyJhbGc...",
  "created_at": "2025-03-30T16:30:00Z",
  "expires_at": "2025-03-31T22:30:00Z"
}

Overview

Create a session token for memory operations.

Authentication

  • Authorization: Bearer your_api_key

Path Parameters

agent_id
string
required
Agent identifier.
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/activate" \
  -H "Authorization: Bearer your_api_key"
{
  "agent_id": "customer-support",
  "session_token": "eyJhbGc...",
  "created_at": "2025-03-30T16:30:00Z",
  "expires_at": "2025-03-31T22:30:00Z"
}

Response Fields

agent_id
string
Agent ID.
session_token
string
Session JWT token.
created_at
string
Session creation time.
expires_at
string
Session expiry time.