Update identity verification settings
/api/v1/webchat/channels/{channelId}/identity-verificationTurn verification rules on or off. Send enforce, requireToken, or both.
Fields you leave out keep their current value.
enforce: truemeans a logged-in user must be verified. Unverified identities are treated as anonymous guests.requireToken: truemeans only expiringuserTokens are accepted. The non-expiring legacyuserHashis refused.
Both require an identity secret (create one with POST …/secret first).
Turn on requireToken only when every page and every supported app version
sends userToken. Otherwise those users chat as guests.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
channelIdstringrequiredExample:
enforcebooleanoptionalRequire every logged-in user to be verified.
requireTokenbooleanoptionalAccept only expiring
userTokens, and refuse the legacyuserHash.
Responses
200Settings updated.
Settings updated.
requestIdstring<uuid>requiredUnique ID for this request, useful when contacting support.
enforceIdentityVerificationbooleanrequiredrequireIdentityTokenbooleanrequired
400Invalid request. Either neither field was sent, a value isn't a boolean, or
enforcement was requested before an identity secret exists.
Invalid request. Either neither field was sent, a value isn't a boolean, or enforcement was requested before an identity secret exists.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired
401The API token is missing, invalid, expired or revoked.
The API token is missing, invalid, expired or revoked.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired
404No web chat channel with this ID exists in your account.
No web chat channel with this ID exists in your account.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired
429Rate limit exceeded (10 requests per second).
Rate limit exceeded (10 requests per second).
messagestringrequirederrorstringoptionalstatusCodeintegerrequired
502The chat service couldn't be reached. Retry shortly.
The chat service couldn't be reached. Retry shortly.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired