Add a contact
Adds one lead to the built-in contact list of a sub-account with no CRM. If the number is already in that list, it updates that contact instead. A sub-account with a CRM keeps its contacts in the CRM, so it is refused with 400. Customer role: agency_admin.
The body is the lead. phone is required. first_name, last_name (or name), email, timezone, address1, city, state and postalCode are optional. So is any of the sub-account’s custom fields, by its key or its name.
An update never erases a value with a blank. A new contact starts the first active campaign whose trigger is “New contact”. The response is 201 for a new contact and 200 for an update.
Cookie-auth callers must send the x-csrf-token header.
Required API key scope: contacts:write.
Authorizations
Path Parameters
Body
The lead.
One lead. phone is required; everything else is optional. Fields nested one level under contact, data or lead are read as well, for senders that wrap the lead. Arrays and deeper objects are ignored.
