cURL
curl --request POST \ --url https://api.agnost.ai/api/v1/capture-session \ --header 'Content-Type: application/json' \ --header 'X-Org-Id: <api-key>' \ --data ' { "session_id": "my-session-123", "user_data": { "user_id": "u-456", "email": "user@example.com" }, "connection_type": "http", "tools": [ "search_web", "get_weather" ] } '
{ "session_id": "<string>" }
Create a new session at the start of a conversation
Organization ID (UUID) — used by SDKs for event ingestion
Unique session identifier (normalized to UUID internally)
"my-session-123"
Show child attributes
{ "user_id": "u-456", "email": "user@example.com"}
"http"
["search_web", "get_weather"]
Session created