Skip to content

SessionController_create

POST
/v1/public/session
curl --request POST \
--url https://example.com/v1/public/session \
--header 'Content-Type: application/json' \
--data '{ "channel": "web", "context": {}, "language": "example", "publishableKey": "pk_…", "visitorId": "example" }'
Media typeapplication/json
object
channel
string
default: web
context

Unsigned host context (anonymous sessions only; max 8 KB)

object
language

Preferred answer language (BCP 47, e.g. tr, en-GB)

string
publishableKey
required
string

Example

pk_…
visitorId

Previous visitor id to keep the same identity

string
Media typeapplication/json
object
expiresIn
required
number
token
required
string
visitorId
required
string

Example generated

{
"expiresIn": 1,
"token": "example",
"visitorId": "example"
}

Guest sessions are disabled for this tenant