POST
/link-token
https://api.merge.dev/api/hris/v1/link-token
US
EU
APAC
Creates a link token to be used when linking a new end user.
Body Parameters
end_user_email_address
StringRequired
Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
end_user_organization_name
StringRequired
Your end user's organization.
end_user_origin_id
StringRequired
This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
categories
ArrayRequired
The integration categories to show in Merge Link.
integration
StringOptional
The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.
link_expiry_mins
IntegerRequired
An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
should_create_magic_link_url
BooleanOptional
Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
hide_admin_magic_link
BooleanOptional
Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
category_common_model_scopes
ObjectBetaOptional
When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.
language
EnumOptional
The following subset of IETF language tags can be used to configure localization. Must pass in one of the following choices:
en
, de
.