Create an Element Token
Element tokens are used as the starting point and authentication key to instantiate Method’s embeddable UI components within your experience.
For security purposes, element tokens are for one-time use only, and expire after 30 minutes.
Body
The structure of the request body differs slightly depending on the type of Element you are trying to use. See the Elements Guide for more information about specific flows.
Either entity_id
or connect.entity
is required.
The name of the element type you want to generate the token for. One of connect
or balance_transfer
An existing entity id that the Element session will initiate for.
The name of the team that will be displayed in the Element.
A URL to an image that will be used as the logo in the Element.
Information needed if creating a Connect Element token.
Information needed if creating a Balance Transfer Element token.
Returns
The element token that was created.