POST
/
elements
/
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.

type
enum
required

The name of the element type you want to generate the token for. One of connect or balance_transfer

entity_id
string

An existing entity id that the Element session will initiate for.

connect
object

Information needed if creating a Connect Element token.

balance_transfer
object

Information needed if creating a Balance Transfer Element token.

Returns

The element token that was created.