Create a contact

Creates a contact for an organization. Only `type` is required; every other field is optional. <Tip> A contact's type is fixed at creation and cannot be changed later, so create a separate contact if you need a different type. </Tip> <Warning> ID and `organisation_id` must not be specified, neither in query string, nor in JSON payload. </Warning>

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Path parameters

org_iddoubleRequired
Unique numeric ID of an organization.

Request

This endpoint expects an object.
typeobjectRequired
Type of contact to create, provided as an object containing the type id. This is the only required field, and the type is fixed at creation and cannot be changed afterward.
namestringOptional
First and last name of the contact.
titlestringOptional

Honorific or professional title of the contact, for example Dr or Ing.

departmentstringOptional
Department the contact belongs to.
streetstringOptional
Street name and number of the contact's address.
zipcodestringOptional
Postal or ZIP code of the contact's address.
citystringOptional
City of the contact's address.
countryobjectOptional
Contact's country, provided as an object containing the country ID.
emailstringOptionalformat: "email"
Email address of the contact.
phonestringOptional
Phone number of the contact.
mobilestringOptional
Mobile phone number of the contact.
statestringOptional
State or province of the contact's address.
secondary_addressstringOptional
Secondary address line, for example apartment or building number.
purchase_order_numberstringOptional<=50 characters
Purchase order number shown on the organization's monthly invoices. <Tip> Set `purchase_order_number` only on invoice contacts (type `6`). When set, it appears on the organization's monthly invoices. </Tip>

Response headers

Locationstring
URL of the newly created contact.

Response

The contact was created successfully. The response contains the created contact, including its generated contact_id.

idinteger
Unique ID of this contact.
organisationobject
typeobject
namestring
First and last name of the contact.
titlestring

Honorific or professional title of the contact, for example Dr or Ing.

departmentstring
Department the contact belongs to.
streetstring
Street name and number of the contact's address.
zipcodestring
Postal or ZIP code of the contact's address.
citystring
City of the contact's address.
countryobject
emailstring
Email address of the contact.
phonestring
Phone number of the contact.
mobilestring
Mobile phone number of the contact.
statestring
State or province of the contact's address.
secondary_addressstring

Secondary address line of the contact (for example, apartment, building number, etc.).

purchase_order_numberstring
Purchase order number displayed on the monthly invoices.
contact_idstring
ID of the created contact, returned as a string.