Skip to main content
POST
Create a widget session for embedding the connect flow

Authorizations

Authorization
string
header
required

Polymorfa organization key (titan_ prefix), project token (titan_pt_ prefix), or client token (titan_ct_ prefix), where the operation permits that audience.

Body

application/json
mode
enum<string>
Available options:
embedded,
redirect
projectId
string
methods
enum<string>[]
Available options:
qr,
pairing,
cloud-api
businessName
string
Minimum string length: 1
historySync
enum<string>
Available options:
force_on,
force_off,
ask
sessionName
string
callbackUrl
string<uri>
allowedOrigins
string<uri>[]
theme
enum<string>
Available options:
light,
dark,
system
accent
string
Pattern: ^#[0-9a-fA-F]{6}$
prefillPhone
string
Pattern: ^\+?\d{6,15}$
autoSubmitPhone
boolean
analytics
object
metaApp
object

Response

Widget session created

success
enum<boolean>
required
Available options:
true
data
object
required