Create a new conversation session with auto-generated ID
cURL
curl --request POST \ --url https://api.example.com/api/v1/sessions \ --header 'X-API-Key: <x-api-key>'
{ "status": "<string>", "result": { "session_id": "<string>", "user": {} }, "time": 123 }
application/json
ok
error
curl -X POST http://localhost:1933/api/v1/sessions \ -H "Content-Type: application/json" \ -H "X-API-Key: your-api-key"
{ "status": "ok", "result": { "session_id": "a1b2c3d4", "user": { "user_id": "alice", "agent_id": "default" } }, "time": 0.1 }
add_message()
viking://session/{user_space}/{session_id}/ ├── messages.jsonl # Current messages ├── .abstract.md # L0: One-sentence summary ├── .overview.md # L1: Session structure description ├── tools/ # Tool execution records └── history/ # Archived message archives ├── archive_001/ └── archive_002/