Skip to main content

Create Chat Session

Creates a new chat session. Sessions store conversation history and can be associated with a specific agent.

POST /api/v1/chat/session — 🔒 Requires Auth

Request Body

FieldTypeRequiredDescription
agent_idstringAssociate session with an agent
agent_urlstringDirect agent endpoint URL

Examples

curl -X POST https://nasiko.dev/api/v1/chat/session \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agent-abc123",
"agent_url": "https://weather-agent.example.com"
}'