AISARAISAR
All webhooks

Contacts

Contact updated

contact.updated

Fires when the information of a contact changes.

HTTP request

AISAR sends a signed POST request to your webhook_url:

http
POST {webhook_url}
Content-Type: application/json
X-AISAR-Signature: sha256=...

{
  "event": "contact.updated",
  "event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
  "timestamp": "2026-03-26T12:00:00.000000Z",
  "company_id": 1,
  "data": {
    "contact": {
      "id": 10,
      "display_name": "John Doe",
      "first_name": "John",
      "last_name": "Doe",
      "second_name": null,
      "phone": "+77001234567",
      "email": "john@example.com",
      "status": "customer",
      "company": null,
      "title": null,
      "is_group": false,
      "phones": ["+77001234567"],
      "emails": ["john@example.com"],
      "created_at": "2026-03-26T12:00:00.000000Z"
    }
  }
}

The X-AISAR-Signature header carries an HMAC-SHA256 signature of the request body — use it to verify the request came from AISAR.

Example payload

json
{
  "event": "contact.updated",
  "event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
  "timestamp": "2026-03-26T12:00:00.000000Z",
  "company_id": 1,
  "data": {
    "contact": {
      "id": 10,
      "display_name": "John Doe",
      "first_name": "John",
      "last_name": "Doe",
      "second_name": null,
      "phone": "+77001234567",
      "email": "john@example.com",
      "status": "customer",
      "company": null,
      "title": null,
      "is_group": false,
      "phones": ["+77001234567"],
      "emails": ["john@example.com"],
      "created_at": "2026-03-26T12:00:00.000000Z"
    }
  }
}

Payload fields

FieldTypeDescription
contact.idintegerInternal contact ID
contact.display_namestring|nullContact display name
contact.first_namestring|nullFirst name
contact.last_namestring|nullLast name
contact.second_namestring|nullMiddle name
contact.phonestring|nullPrimary phone number
contact.emailstring|nullPrimary email address
contact.statusstringlead or customer
contact.companystring|nullCompany name
contact.titlestring|nullJob title
contact.is_groupbooleanWhether this is a group contact
contact.phonesarrayAll phone numbers (strings)
contact.emailsarrayAll email addresses (strings)