Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The user for which the token represents authentication.

Example:

"usr_01jymgdfrpec2asc5m0z3a6fr9"

Body

application/json

A request to create a token

duration_seconds
integer

For how many seconds the token should be accepted. Defaults to 15 minutes.

Required range: 15 <= x <= 3600
Example:

900

read_only
boolean
default:false

Restrict the token to viewing embedded conversations and unread counts. Sending messages, changing read state, editing contacts, and calling are disabled. Defaults to false. Preserve this value when refreshing the token; changing access mode requires reloading the embed.

Response

Created token

Response when token has been created successfully

token
string

The created token.