v1
latestOpenAPI 3.1.02026-07-26142186376.1 KBSessions
Create New Session
Create a new empty session with optional configuration. Useful for pre-creating sessions with specific session_state, metadata, or other properties before running any agent/team/workflow interactions. The session can later be used by providing its session_id in run requests.
post/sessions
Query parameters
type'agent' | 'team' | 'workflow'
Type of session to create (agent, team, or workflow)
db_idstring nullable
Database ID to create session in
Database ID to create session in
Request body
Response
Session created successfully