chatformdocs
API referenceV1

Issue a fresh respondent token, invalidating the old one

POST
/v1/sessions/{sid}/token/rotate

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

sid*string

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/sessions/string/token/rotate"
{  "respondentToken": "string",  "rotatedAt": 0}