1. Webchat Identity Verification
  • Getting Started
    • Introduction
    • Quickstart
    • Authentication
    • Status codes
  • Webhook
    • Webhook Setup
    • Webhook Events and Schema
  • SDKs
    • @klink.cloud/call-sdk
  • API Reference
    • Contact
      • Listing
      • Create
      • Filter By SocialPlatformId
      • Form Fields
      • Detail
      • Update
      • Delete
      • Fetch Contact Groups
      • Update tags
      • Filter By Phone Number
    • Tag
      • Listing
    • Channel
      • Listing
      • Create
    • Ticket
      • Listing
      • Create
      • Filter by Contact ID
      • Form Fields
      • Update
      • Update status
    • Category
      • Listing
    • CxLog
      • Listing
    • Message
      • Send message
      • Create comments
      • Get Comments
    • Media Manager
      • Upload File (multipart)
      • Get Folders
      • Get Folder By ID
      • Create Folder
      • Update Folder
      • Delete Folder
      • Get Files
      • Get File By ID
      • Create File
      • Update File
      • Delete File
    • Agent Activity
      • Get Agents Activities
    • Telephony
      • Get Telephony CDR
    • User
      • Create
      • Listing
      • Detail
      • Update
      • Delete
    • Automation Queue
      • Create
      • Listing
      • Detail
      • Update
      • Delete
      • Add Member
      • Remove Member
    • Role
      • Listing
    • Webchat Identity Verification
      • Get identity verification settings
        GET
      • Update identity verification settings
        PUT
      • Create or rotate the identity secret
        POST
    • Schemas
      • RequestId
      • IdentityVerificationStatus
      • IdentityVerificationUpdate
      • IdentityVerificationSettings
      • IdentitySecret
      • userToken (JWT claims)
      • Error
Blog
Github
  1. Webchat Identity Verification

Update identity verification settings

PUT
/api/v1/webchat/channels/{channelId}/identity-verification
Turn verification rules on or off. Send enforce, requireToken, or both.
Fields you leave out keep their current value.
enforce: true means a logged-in user must be verified. Unverified
identities are treated as anonymous guests.
requireToken: true means only expiring userTokens are accepted. The
non-expiring legacy userHash is 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 bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Settings updated.
Bodyapplication/json

🟠400
🟠401Unauthorized
🟠404ChannelNotFound
🟠429TooManyRequests
🔴502BadGateway
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request PUT 'https://apigw.klinkcx.com/api/v1/webchat/channels//identity-verification' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "enforce": true
}'
Response Response Example
200 - Success
{
    "requestId": "7c0d4e2a-1b3f-4a6d-9e8c-5f2b1a0d3c47",
    "enforceIdentityVerification": true,
    "requireIdentityToken": true
}
Modified at 2026-09-29 08:27:56
Previous
Get identity verification settings
Next
Create or rotate the identity secret
Built with