• 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
        • Update identity verification settings
        • Create or rotate the identity secret
      • Schemas
        • RequestId
        • IdentityVerificationStatus
        • IdentityVerificationUpdate
        • IdentityVerificationSettings
        • IdentitySecret
        • userToken (JWT claims)
        • Error
    Blog
    Github

    UserTokenClaims(userToken (JWT claims))

    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.

    {
        "sub": "cust_9931",
        "exp": 1790661969,
        "iat": 1790661369,
        "nbf": 0,
        "name": "Jane Doe",
        "email": "user@example.com",
        "phone": "+95912345678"
    }
    Built with