curl --request POST \
  --url https://api.usepylon.com/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "<string>",
  "avatar_url": "<string>",
  "account_id": "<string>"
}'

Create a contact. Contacts are individuals from your customers’ companies that have interacted with you.

Body Parameters

name
string
required

The name of the contact.

email
string
required

The email of the contact.

avatar_url
string

The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.

account_id
string
required

The ID of the account this contact is associated with.

Response

Example response

{
    "data": {
        "id": "22d1ba84-0d2e-4c33-92dc-01bb6c58be54",
        "name": "John the Customer"
        "email": "john@customer.com"
    },
    "request_id": "ff94ff86-a755-4ebb-a16f-41aae732fc9c"
}