Create a new conversation session with auto-generated ID
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
}Create a new session to track conversation state, context usage, and extract long-term memories. Each session is assigned a unique ID automatically.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/volcengine/OpenViking/llms.txt
Use this file to discover all available pages before exploring further.
application/jsonok or 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/
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
}