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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Type of session to create (agent, team, or workflow)
agent, team, workflow Database ID to create session in
Session configuration data
Optional session ID (generated if not provided)
Name for the session
Initial session state
Additional metadata
User ID associated with the session
Agent ID if this is an agent session
Team ID if this is a team session
Workflow ID if this is a workflow session
Session created successfully
Unique agent session identifier
Session identifier
Human-readable session name
User ID associated with the session
Summary of session interactions
Current state of the session
Agent ID used in this session
Total tokens used in this session
Agent-specific data
Session metrics
Additional metadata
Complete chat history
Session creation timestamp
Last update timestamp