Developers
Create a client
POST /api/v1/clients — required fields, tags by name, timeline notes, and what happens when the email already exists.
Endpoint
POST /api/v1/clients
Authorization: Bearer ume_…
Content-Type: application/json
What gets created
Same path as adding a client manually in the CRM:
- CRM lead on the API key’s agent site (assignee = site owner / key creator).
- Consumer user account for that person on the branded site (email login).
For a new account, the initial password is the phone number’s digits only (no + or formatting). Example: phone +15551234567 → password 15551234567. They can sign in on the agent site with that email + phone-digit password (and change it later).
If the email already belongs to someone in the organization, the API refuses with 409 and changes nothing: their name, phone and login stay as they are. Update an existing lead in the dashboard instead.
Request body
| Field | Required | Description |
|---|---|---|
name | Yes | Client full name |
email | Yes | Valid email — used as the consumer login |
phone | Yes | E.164 preferred (e.g. +15551234567). Digits become the initial password for new users |
tags | No | Array of tag names (not IDs). Missing names are created on the org |
note | No | Text added as a timeline note on the lead |
Tags and notes
- Tags resolve by name (case-insensitive match). If no label exists, one is created and applied.
- Note becomes the lead’s initial timeline note when provided.
Response
201 Created with JSON:
{
"leadId": "…",
"action": "created"
}
action is created: a new lead and consumer user were added.
When the email already exists in the organization (matched trimmed and case-insensitive), nothing is written and the response is 409:
{
"error": "A lead with this email already exists",
"code": "lead_exists"
}
Validation failures return 400. Auth failures return 401 / 403 as described in Authentication.
Example
curl -X POST 'https://app.umeidx.com/api/v1/clients' \
-H 'Authorization: Bearer ume_ab12_your_token' \
-H 'Content-Type: application/json' \
-d '{
"name": "Dana Reyes",
"email": "dana@example.com",
"phone": "+15551234567",
"tags": ["Buyer"],
"note": "Imported from MLS portal"
}'