Skip to main content

Create a contact

Create a new contact and use it to create document recipients.

Parameters

address
string
Address of the contact.
city
string
City of the contact.
country
string
Two-letter ISO code of the contact country.
email
string
required
Email of the contact.
job_title
string
Job title of the contact.
name
string
required
Name of the contact.
organization
string
Organization of the contact.
phone
string
Phone of the contact.
postal_code
string
Postal code of the contact.
state
string
State of the contact.

Returns

Returns the created contact object. Throws an error if some parameters are not valid.

post
/api/contacts
curl -X POST https://{workspace}.documocu.com/api/contacts \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"address": null,
"city": null,
"color": "#e187c5",
"country": null,
"created_at": "2024-05-14T08:36:49+00:00",
"email": "[email protected]",
"first_name": "Thaddeus",
"full_name": "Thaddeus Macejkovic",
"id": "con_ody240o93zzuch5n7412od42",
"job_title": null,
"last_name": "Macejkovic",
"organization": null,
"phone_number": null,
"postal_code": null,
"state": null,
"updated_at": "2024-05-14T08:36:49+00:00"
}