Skip to content
AISARAISAR
Contacts

Contacts

Contact updated

contact.updated

Fires when the information of a contact changes, and also when a contact is hidden from the working inbox or returned to it (`POST /v1/contacts/{contact}/hide-from-inbox` and `/unhide-from-inbox`) — no separate event type was introduced for that. This event's payload is the short, snake_case one (not the full contact card as in `contact.created`), so it carries no `hidden_from_inbox_at`, `last_activity_at`, `open_deals_count` or `responsible_user`: read the current state via `GET /v1/contacts/{contact}`.

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": "+12025550187",
      "email": "john@example.com",
      "status": "customer",
      "company": null,
      "title": null,
      "is_group": false,
      "phones": ["+12025550187"],
      "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": "+12025550187",
      "email": "john@example.com",
      "status": "customer",
      "company": null,
      "title": null,
      "is_group": false,
      "phones": ["+12025550187"],
      "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)