Skip to main content
POST
Create a contact

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
first_name
string
required

Contact's first name

Maximum string length: 255
Example:

"John"

last_name
string | null

Contact's last name

Maximum string length: 255
Example:

"Smith"

company_id
integer

ID of the company this contact belongs to (provide either company_id or company_ids)

Example:

123

company_ids
integer[]

Multiple company associations (alternative to company_id; do not send both)

Minimum array length: 1
Example:
email
string<email> | null

Contact's email address

Maximum string length: 255
Example:

"john.smith@acmecorp.com"

phone_1
string | null

Contact's primary phone number

Maximum string length: 255
Example:

"555-987-6543"

phone_2
string | null

Contact's secondary phone number

Maximum string length: 255
Example:

"555-555-5555"

receiving_bank_name
string | null

Bank name for receiving payments

Maximum string length: 255
receiving_bank_address
string | null

Bank address for receiving payments

Maximum string length: 255
is_primary
boolean | null

Whether this is the primary contact for the company

Example:

false

receive_quotation_pdf
boolean | null

Whether the contact should receive quotation PDFs

Example:

false

receive_purchase_order_pdf
boolean | null

Whether the contact should receive purchase order PDFs

Example:

false

receive_purchase_order_invoice_pdf
boolean | null

Whether the contact should receive purchase order invoice PDFs

Example:

false

tags
string[] | null

Tags to associate with the contact

Maximum string length: 255
Example:
password
string<password>

Optional. Creates a B2B portal login when email is also provided. Required: email must be set when password is provided.

Required string length: 8 - 255

Response

Contact successfully created

data
object