Expiring Access Tokens

Create Expiring Access Token

Changed on
🚫 Alert
This API is still under development and can change at any time.

This endpoint is for creating expiring access tokens which can be used for some iframe embeds and, when granted the all:delegate_to_contact_permissions scope, for REST API requests authorized by the token's authorizations.

Requires api token with one of the following permissions

Read, update & delete anything

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

post/expiring_token

Request

  • Base URL
    https://api.wistia.com/modern
  • URL
    https://api.wistia.com/modern/expiring_token
  • Auth
    HTTP bearer

Headers

X-Wistia-API-Versionstring required

Request body

Example request

{
  "expiring_access_token": {
    "scopes": [
      "graphql:all"
    ],
    "authorizations": [
      {
        "permissions": [
          "show"
        ]
      }
    ]
  }
}

Response

Successful response

tokenstring required

A token which can be used to authorize requests to Wistia. With the graphql:all scope it authorizes GraphQL requests such as transcript embeds; with the all:delegate_to_contact_permissions scope it can also be used as a bearer token for REST API requests authorized by the token's authorizations.

Changes