v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Streams

Reset token

Rotate the stream token: invalidate the current token and generate a new one. Any client using the old token must be updated.

Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).

get/streams/{id}/token/reset

Response

The reset result, including the new token on success.

statusinteger

Result code: 1 on success; other values indicate an error (see message).

messagestring

Human-readable result.

tokenstring

The new stream token (present on success).

Example response

{
  "status": 1,
  "message": "OK",
  "token": "578f7b486a401391ccb41b660d969d92c320334d26d6bcc77a49587af42a34c3"
}