Create Account
Create a new account with required and optional fields.
Required fields:
- `title`: Account name
- `address`: Account location
Optional fields:
- `accountType`: Account type (RESIDENTIAL/COMMERCIAL)
- `value`: Account value
- `size`: Account size
- `primaryEmail`/`primaryPhone`: Contact information
- `contacts`: Contact IDs only (no name, email, phone, etc.). **The contacts must be created first via POST /contacts.**
- `custom`: Custom fields object
Note: If primaryEmail or primaryPhone is provided and no contacts are provided, a contact will be automatically created or matched.
**Note:** The `/clients` path is an alias for `/accounts` and will continue to work until users are individually notified and migrated.
Authentication
x-api-keystring
API Key authentication via header
Query parameters
allow_new_options
Whether to allow creation of new dropdown options during record creation
match_by
Field to use for matching existing records
Allowed values:
match_found_strategy
Strategy to use when a match is found
Allowed values:
Request
This endpoint expects an object.
title
Account name
address
Account location/address
description
Account description
accountType
Account type
Allowed values:
primaryEmail
Primary contact email
primaryPhone
Primary contact phone
contacts
Contact IDs only (no name, email, phone, etc.). The contacts must be created first via POST /contacts.
custom
Custom fields
Response
Matching account found
accountType
Type of account (residential or commercial)
Allowed values:
address
Record location/address
contacts
createdAt
Creation timestamp
custom
Custom fields
description
Record description
id
Unique identifier
isActive
Whether the record is active
number
Record number (e.g., 1234)
primaryEmail
Primary contact email
primaryPhone
Primary contact phone
title
Record title/name
updatedAt
Last update timestamp
