Onboarding/OffChain

Client-side create user

Changed on

Creates a new user in the Wirex system using client side Privy SDK authorization.

post/api/v1/user/retail

Request

  • Base URL
    https://api-baas.wirexapp.com
  • URL
    https://api-baas.wirexapp.com/api/v1/user/retail
  • Auth
    API key in header X-Chain-Id and API key in header Authorization and API key in header Identity

Request body */*

countrystring

The residence country of the user. This should be an Alpha-2 code. (e.g., US, GB, DE)

referrer_addressstring

EOA address of the user who referred this user

Example request

{
  "country": "FR",
  "referrer_address": "0xA7E41d5680dE394EaA2ed417169DFf56840Fb3EE"
}

Response

OK

idstring required

Identifier of the created entity

Example response

{
  "id": "123e4567-e89b-12d3-a456-426655440000"
}

Changes