Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Body
Response
201
curl --request POST \
--url https://dovetail.com/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "John Smith",
"email": "john@dovetail.com",
"fields": [
{
"label": "salesforce_id",
"value": "003XX000004TmiQQAS"
}
]
}'{
"data": {
"id": "<string>",
"name": "<string>",
"created_at": "<string>",
"fields": [
{
"label": "<string>",
"value": "<string>",
"type": "BOOLEAN"
}
]
}
}Create a new contact in the contacts database.
🚧 Permissions
Please check you have the relevant permissions required to access this resource. This may include specific permissions on the object itself or its parent, or having the correct user role if you’re making updates.
curl --request POST \
--url https://dovetail.com/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "John Smith",
"email": "john@dovetail.com",
"fields": [
{
"label": "salesforce_id",
"value": "003XX000004TmiQQAS"
}
]
}'{
"data": {
"id": "<string>",
"name": "<string>",
"created_at": "<string>",
"fields": [
{
"label": "<string>",
"value": "<string>",
"type": "BOOLEAN"
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The contact’s name.
1000"John Smith"
The contact’s email.
"john@dovetail.com"
Custom field data for the contact (key-value pairs).
Show child attributes
[
{
"label": "salesforce_id",
"value": "003XX000004TmiQQAS"
}
]201
Show child attributes
Was this page helpful?