Contact Events

Contact events provide details on the changes made to your contacts including contact creation, update and deletion. These events can be subscribed to the shared and local contacts of a company.

Events are sent to a webhook that you (as a company admin or developer) provide. To get started, create a webhook and a contact event subscription using our API.

Payload

Payloads sent to your webhook will be JWT encoded and will contain the following fields:

FieldDescriptionNotes
eventThe type of the event.Enum: Created, Updated, Deleted.
contactThe object that represents the created contact, updated contact, or deleted contact.See below table for the fields of the contact object.

The contact object:

FieldDescriptionNotes
idA unique number ID automatically assigned to each contact.
typeThe type of the contact.
first_nameThe contact's first name.
last_nameThe contact's last name.
display_nameThe contact's display name.
phonesThe contact's phone numbers. The phone number is in e164 format.Array of strings.
primary_phoneThe contact's primary phone number in e164 format.
emailsThe contact's emails.Array of strings.
primary_emailThe contact's primary email.
company_nameThe contact's company name.
job_titleThe contact's job title.
urlsThe contact's website urls.
trunk_groupThe contact's trunk group.
extensionThe contact's extension number.

Sample payloads

{
  "event": "Created",
  "contact": {
    "id": "5908860123456789",
    "type": "shared",
    "first_name": "sample",
    "last_name": "test",
    "display_name": "sample test",
    "phones": [
      "+16043111111",
      "+16043111112"
    ],
    "primary_phone": "+16043111111",
    "emails": [
      "[email protected]"
    ],
    "primary_email": "[email protected]",
    "company_name": "Awesome company",
    "job_title": "Awesome job",
    "urls": [
      "https://foobar.com",
      "https://foobar2.com"
    ],
    "trunk_group": "TEST",
    "extension": "12345"
  }
}
{
  "event": "Updated",
  "contact": {
    "id": "5908860123456789",
    "type": "shared",
    "first_name": "sample",
    "last_name": "test",
    "display_name": "sample test",
    "phones": [
      "+16043111111",
      "+16043111112"
    ],
    "primary_phone": "+16043111111",
    "emails": [
      "[email protected]"
    ],
    "primary_email": "[email protected]",
    "company_name": "Awesome company 2",
    "job_title": "Awesome job 2",
    "urls": [
      "https://foobar.com",
      "https://foobar2.com"
    ],
    "trunk_group": "TEST",
    "extension": "12345"
  }
}
{
  "event": "Deleted",
  "contact": {
    "id": "5908860123456789",
    "type": "shared",
    "first_name": "sample",
    "last_name": "test",
    "display_name": "sample test",
    "phones": [
      "+16043111111",
      "+16043111112"
    ],
    "primary_phone": "+16043111111",
    "emails": [
      "[email protected]"
    ],
    "primary_email": "[email protected]",
    "company_name": "Awesome company 2",
    "job_title": "Awesome job 2",
    "urls": [
      "https://foobar.com",
      "https://foobar2.com"
    ],
    "trunk_group": "TEST",
    "extension": "12345"
  }
}