Skip to main content
POST
Create a session using a path ID
This deprecated endpoint remains available for existing clients. New integrations should use Create a session and set sessionId in the request body The body of this endpoint is the initial state itself, such as {"language":"zh"}. When migrating, change it to {"sessionId":"session-001","state":{"language":"zh"}} and remove the session ID from the path

Path Parameters

app_name
string
required

Application name

user_id
string
required

User ID

session_id
string
required

Session ID

Body

application/json

The body is of type State · object | null.

Response

Successful response

id
string
required

Identifier

appName
string
required

Application name

userId
string
required

User ID

state
State · object

Session state as key-value pairs

events
Event · object[]

Session events

lastUpdateTime
number
default:0

Last update time as a Unix timestamp in seconds

Last modified on September 19, 2026