end-users

Mint End User Token

Mints a short-lived token the end user's own client uses to reach one of its agents.

Defaults: the end user's oldest agent, scope chat, 900 seconds. Scopes: chat, files, console, logs, app. The token is shown once. A suspended end user's tokens stop working at once.

post/api/v1/end-users/{external_id}/tokens

Request

  • Base URL
    https://api.maritime.sh (the document declares no server; this is the origin it was published from)
  • URL
    https://api.maritime.sh/api/v1/end-users/{external_id}/tokens
  • Auth
    HTTP bearer

Path parameters

external_idstring required

Request body

agentIdstring nullable
scopesstring[] nullable
ttlSecondsinteger nullable

Response

Successful Response

tokenstring required
agentIdstring required
scopesstring[] required
expiresAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.