Webchat Identity Verification

Create or rotate the identity secret

POST/api/v1/webchat/channels/{channelId}/identity-verification/secret

Creates the channel's identity secret, or replaces it if one exists.

The secret is returned only in this response. Store it in your server's secret manager. Never put it in a website, mobile app or source code.

Rotating takes effect immediately:

  • every userToken and userHash made with the old secret stops working;
  • every active chat session ends, and the user continues as a guest until your page or app provides a new token.

Deploy the new secret to your servers at the same time.

Request

Authorization

Bearer Token

Provide your API token in the Authorization header. See Authentication to issue one.

Example:Authorization: Bearer ********************

Path Params
  • channelIdstringrequired

    Example:

Responses

201

New secret created.

  • requestIdstring<uuid>required

    Unique ID for this request, useful when contacting support.

  • secretstringrequired

    64 hex characters. Shown only once. Keep it on your server.

400

Invalid request, e.g. channelId is not a UUID.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired
401

The API token is missing, invalid, expired or revoked.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired
404

No web chat channel with this ID exists in your account.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired
429

Rate limit exceeded (10 requests per second).

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired
502

The chat service couldn't be reached. Retry shortly.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired