DotsDocs
Users

Create a User

Create a user or connect an existing user in your organization to this application. Matching email and phone information reuses the existing user. A matching unverified email can be updated to the supplied phone number; a matching verified email with a different phone number is rejected. A matching phone number can reuse its existing user without changing that user's email address. With a payout agent credential, only `first_name`, `last_name`, `email`, `country_code`, `phone_number`, and `metadata` are accepted. The email and phone must identify the same user and cannot replace either identifier on an existing user.

POST
/v2/users

Create a user or connect an existing user in your organization to this application. Matching email and phone information reuses the existing user. A matching unverified email can be updated to the supplied phone number; a matching verified email with a different phone number is rejected. A matching phone number can reuse its existing user without changing that user's email address. With a payout agent credential, only first_name, last_name, email, country_code, phone_number, and metadata are accepted. The email and phone must identify the same user and cannot replace either identifier on an existing user.

Authorization

headerAuthorizationBasic <token>

Request Body

application/json
  1. body
first_name*string

The user's first name. Digits, tabs, emoji, and non-printable characters are not allowed.

Length1 <= length <= 50
last_name*string

The user's last name. Digits, tabs, emoji, and non-printable characters are not allowed.

Length1 <= length <= 50
email*string

The user's email address.

Formatemail
country_code*string

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

Match^[0-9]{1,3}$
phone_number*string

The user's valid mobile phone number, for example "4157223331". Landlines are rejected; VOIP numbers are rejected in production.

Match^[0-9]{1,20}$
username?string

Username to assign the user.

Length1 <= length <= 50
date_of_birth?string

The user's date of birth. The user must be approximately 10 to 120 years old.

Formatdate
1099_adjustment?|

Income paid outside of the Dots platform in the current calendar year. The form must match the application's configured 1099 filing type.

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.

payout_options_exclude_list?array<>

List of payout rails to hide from this user in the Dots iframe and block on payout creation. Empty or omitted means no restriction.

Response Body

Created

application/json
  1. response

The created user object.

id?string
Formatuuid
first_name?string
last_name?string
email?string
Formatemail
phone_number?
verified?boolean

Whether the user and their app connection are active.

country?|

User's two-letter country code.

Formatiso3166
auto_payout_enabled?boolean

Whether automatic payouts are enabled for the user.

default_payout_method?rail
Value in"ach""rtp""paypal""venmo""visa""amazon""cash_app""intl_bank""intl_transfer""bank_transfer""airtm""payoneer""wire""invoice""crypto""push_to_card"
default_payout_method_details?
wallet?
status?string
Value in"verified""unverified""disabled""in_review""banned"
compliance?
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.

payout_options_exclude_list?array<>

Payout rails hidden from this user. Stacks with app-level exclusions.

1099_adjustment?|

Current-year 1099 adjustment for the user, if one has been set. Only returned by the retrieve-a-user endpoint (GET /v2/users/{user_id}) when the application's configured filing type has a matching adjustment; omitted otherwise and never included in list responses.

Example Request
curl -X POST 'https://api.dots.dev/api/v2/users' \  -H 'Content-Type: application/json' \  -d '{  "first_name": "Bob",  "last_name": "Loblaw",  "email": "bob@bobloblaw.com",  "country_code": "1",  "phone_number": "4154332334",  "metadata": {    "internal_id": "user_121344"  }}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "first_name": "string",  "last_name": "string",  "email": "user@example.com",  "phone_number": {    "country_code": "string",    "phone_number": "string"  },  "verified": true,  "country": "string",  "auto_payout_enabled": true,  "default_payout_method": "ach",  "default_payout_method_details": {    "id": "string",    "platform": "ach",    "description": "string",    "mask": "string",    "email": "string",    "phone_number": "string",    "cash_tag": "string",    "country": "string",    "currency": "string",    "instant_ach_available": true,    "rtp_enabled": true,    "bank_verification_status": "verified",    "meta": null  },  "wallet": {    "amount": 0,    "withdrawable_amount": 0,    "credit_balance": 0  },  "status": "verified",  "compliance": {    "tax_id_collected": true,    "tax_id_verification": "not_required",    "address_collected": true,    "date_of_birth_collected": true,    "must_collect_1099": true,    "1099_collected": true,    "w8_ben_collected": true,    "must_collect_dac7": true,    "dac7_collected": true,    "dac7_vat_number_status": "pending",    "flagged": true,    "id_verified": true,    "has_criminal_activity": true,    "background_check": {      "status": "not_started",      "updated": "2019-08-24T14:15:22Z"    },    "w9": {      "entity_type": "individual",      "business_name": "string",      "tax_id_collected": true,      "address_collected": true    },    "flags": {      "ofac": true,      "ofac_status": "unflagged",      "payout_method": true,      "payout_method_cycle": true,      "name_mismatch": true    }  },  "metadata": "string",  "payout_options_exclude_list": [    "ach"  ],  "1099_adjustment": {    "year": 0,    "form": "1099-NEC",    "amount": 1  }}