Schemas
Shared data models referenced by the API endpoints. The full machine-readable definition is available as openapi.yaml.
IdentityVerificationStatus
requestIdstring<uuid>requiredUnique ID for this request, useful when contacting support.
secretConfiguredbooleanrequiredWhether an identity secret exists for this channel.
enforceIdentityVerificationbooleanrequiredWhen
true, unverified identities are treated as anonymous guests.requireIdentityTokenbooleanrequiredWhen
true, only expiringuserTokens are accepted, and the legacyuserHashis refused.
IdentityVerificationUpdate
Send at least one field.
enforcebooleanoptionalRequire every logged-in user to be verified.
requireTokenbooleanoptionalAccept only expiring
userTokens, and refuse the legacyuserHash.
IdentityVerificationSettings
requestIdstring<uuid>requiredUnique ID for this request, useful when contacting support.
enforceIdentityVerificationbooleanrequiredrequireIdentityTokenbooleanrequired
IdentitySecret
requestIdstring<uuid>requiredUnique ID for this request, useful when contacting support.
secretstringrequired64 hex characters. Shown only once. Keep it on your server.
UserTokenClaims
Not an API response. This describes the token your server creates and
passes to the widget as authUser.userToken, or to the hosted chat page as
?userToken=.
Sign it as a JWT with algorithm HS256, using the channel secret. Only HS256 is accepted. Create a fresh token each time the chat opens.
substringrequiredYour user's unique, stable ID. It must never change for that user. To identify users by email, set
subto the email and also includeemail.Example:cust_9931
expinteger<int64>requiredExpiry time in unix seconds. Recommended: 10 minutes from now. Tokens valid for more than 24 hours are rejected. Up to 60 seconds of clock difference is tolerated.
Example:1790661969
iatinteger<int64>optionalIssue time in unix seconds. Recommended.
Example:1790661369
nbfinteger<int64>optionalOptional "not before" time in unix seconds.
namestringoptionalDisplay name shown to agents. It's signed, so visitors can't change it.
Example:Jane Doe
emailstring<email>optionalEmail shown to agents. Signed.
phonestringoptionalPhone number shown to agents. Signed.
Example:+95912345678
CxLogTranscriptResponse
requestIdstring<uuid>requireddataCxLogTranscriptrequiredChild attributes
cxLogIdstring<uuid>requiredcaseIdinteger<int64>requiredroomIdstring<uuid>requiredThe chat room the case belongs to.
channelstring | nullrequiredExample:line
transcriptstringrequiredNewline-separated transcript lines, oldest first.
CxLogTranscript
cxLogIdstring<uuid>requiredcaseIdinteger<int64>requiredroomIdstring<uuid>requiredThe chat room the case belongs to.
channelstring | nullrequiredExample:line
transcriptstringrequiredNewline-separated transcript lines, oldest first.