POST
/
v1
/
contacts
Create contact
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body

name
string
required

The contact’s name.

Maximum length: 1000
Example:

"John Smith"

email
string<email>
required

The contact’s email.

Example:

"john@dovetail.com"

fields
object[]

Custom field data for the contact (key-value pairs).

Example:
[
{
"label": "salesforce_id",
"value": "003XX000004TmiQQAS"
}
]

Response

201

data
object
required