The Security API, when present, requires all endpoints to be provided with an authentication token.

Authorization Tokens

This API allows you to generate authorization tokens. You must include these tokens in the authorization header of every other request you make.

POST /token

Description

Request

Response


PATCH /psk

Change the PSK. Invalidates all tokens.

Request

Response


GET /attachment-session

Sets a cookie allowing browsers to load attachments using elements. No body is returned, but a attachment_session cookie is set. Make sure to include your authorization token.