Web Component Tokens

Generate A Token

The web component token provides permission to render a web component on your frontend. To get a web component token post your access token in the header and the business_id or account_id as part of the resources array in the body. For a list of resources needed for each web component please refer to Roles need for each component. The token will be valid for 60 minutes.

post/web_component_tokens

Request

Headers

Authorizationstring required

the access_token value returned from the JustiFi oauth/token endpoint (be sure to append Bearer before the token)

Request body

resourcesstring[]

Build an array of concatenated role (read/write), resource (account/business) and resource id which you need the web component to access. For example ["write:business:biz_123"]

Response

A web component token has been created

access_tokenstring

Use this field in the auth-token parameter of the web component you would like to render

expires_innumber

The amount of seconds until the token expires

token_typestring

Type of token, this will always return Bearer

Changes

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