Skip to main content
POST
Create a new user by link
v1 (legacy). This page documents the API before the v2 update. The v1 format is not enabled for new accounts and must be enabled on your account by your account manager. New integrations should use the current documentation. To update an existing integration, follow the migration guide.

Authorizations

x-api-key
string
header
required

Body

application/json
country
enum<string>
required

The country the user operates in. A user onboards in one country; another country takes another user.

Available options:
MX,
PE,
CO
Example:

"MX"

email
string<email>
required

User's email address.

Example:

"john.doe@example.com"

userType
enum<string>
required

Type of user.

Available options:
business,
individual
Example:

"individual"

businessName
string

Business name (required for business users).

Example:

"My Business Inc."

firstName
string

First name (required for individual users only).

Example:

"John"

middleName
string

Middle name (for individual users only).

Example:

"Michael"

lastName
string

Last name (required for individual users).

Example:

"Doe"

secondLastName
string

Second last name (for individual users only).

Example:

"Smith"

productCode
string

The market to onboard the user for, from GET /api/users/products (optional). It has to be in the user's country. Becomes the user's default market; without it, stablecoin-fx in the user's country.

Example:

"stablecoin-fx-mx"

brokerId
string<mongoId>

ID of the broker (optional).

Example:

"655f4084b96e4fb76f5a0e6e"

Response

OK

userId
string

ID of the created user.

Example:

"66562bc04fe8bf83c577c178"

Link for user onboarding verification.

Example:

"https://verification.example.com/session/123"

productCode
string

The user's default market: the product code given, or stablecoin-fx in the user's country.

Example:

"stablecoin-fx-mx"