Skip to main content
POST
/
api
/
user
/
create
Create user
curl --request POST \
  --url https://api.sandbox.bitwage.com/api/user/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "phone_number": "1 800 123 1234",
  "phone_country": "US",
  "first_name": "<string>",
  "last_name": "<string>",
  "date_of_birth": "1990-01-15",
  "street_address": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zip": "<string>",
  "country": "US",
  "product": "worker",
  "street_address_2": "<string>"
}
'
{
  "user_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Include your access token as: Authorization: Basic <ACCESS_TOKEN>

Body

application/json
email
string<email>
required
phone_number
string
required

International format including area code. Whitespace and special characters accepted.

Example:

"1 800 123 1234"

phone_country
string
required

2-character ISO country code (not numeric area code).

Example:

"US"

first_name
string
required
last_name
string
required
date_of_birth
string
required

Format YYYY-MM-DD.

Example:

"1990-01-15"

street_address
string
required
city
string
required
state
string
required
zip
string
required
country
string
required

2-character ISO country code.

Example:

"US"

product
enum<string>
required

Only worker is currently supported.

Available options:
worker
street_address_2
string

Response

200 - application/json

User created successfully.

user_id
string