curl --request POST \
  --url https://api.dots.dev/api/v2/users \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country_code": "1",
  "email": "bob@bobloblaw.com",
  "first_name": "Bob",
  "last_name": "Loblaw",
  "metadata": {
    "internal_id": "user_121344"
  },
  "phone_number": "4154332334"
}'
{
  "compliance": {
    "1099_collected": true,
    "address_collected": true,
    "date_of_birth_collected": true,
    "flagged": true,
    "id_verified": true,
    "must_collect_1099": true,
    "tax_id_collected": true,
    "w8_ben_collected": true
  },
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_name": "<string>",
  "metadata": "<string>",
  "phone_number": {
    "country_code": "<string>",
    "phone_number": "<string>"
  },
  "wallet": {
    "amount": 123,
    "credit_balance": 123,
    "withdrawable_amount": 123
  }
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
country_code
string
required

The user's phone number country code. e.g. "1"

email
string
required

The user's email address.

first_name
string
required

The user's first name.

last_name
string
required

The user's last name.

metadata

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

phone_number
string
required

The user's phone number. e.g. "4157223331".

username
string

Username to assign the user.

Response

200 - application/json
compliance
object
email
string
first_name
string
id
string
last_name
string
metadata

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

phone_number
object
wallet
object