Skip to main content
POST
Create Session
Create a new session to track conversation state, context usage, and extract long-term memories. Each session is assigned a unique ID automatically.

Request

Headers

string
required
Your OpenViking API key for authentication
string
default:"application/json"
Must be application/json

Response

string
Response status (ok or error)
object
Session creation result
string
Auto-generated session identifier
object
User information associated with the session
number
Request processing time in seconds

Examples

Response Example

Session Lifecycle

Once created, a session can be used to:
  1. Add messages - Track conversation turns with add_message()
  2. Search with context - Improve retrieval using session history
  3. Track usage - Record which contexts and skills were actually used
  4. Commit - Archive messages and extract long-term memories

Session URI Structure

Each session is stored at: