All webhooks
Contacts
Contact created
contact.createdFires when a new contact is created. Note that in this event payload the contact field names are camelCase, and the email list field is spelled emailes.
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.created",
"event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
"timestamp": "2026-03-26T12:00:00.000000Z",
"company_id": 1,
"data": {
"contact": {
"id": 10,
"company_id": 1,
"displayName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"secondName": null,
"salutation": null,
"title": null,
"company": null,
"status": "lead",
"photo": null,
"comments": null,
"phones": [{ "phone": "+77001234567", "type": "mobile" }],
"emailes": [{ "email": "john@example.com", "type": "work" }],
"contactAccounts": [],
"tags": [],
"created_at": "2026-03-26T12:00:00.000000Z",
"updated_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.created",
"event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
"timestamp": "2026-03-26T12:00:00.000000Z",
"company_id": 1,
"data": {
"contact": {
"id": 10,
"company_id": 1,
"displayName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"secondName": null,
"salutation": null,
"title": null,
"company": null,
"status": "lead",
"photo": null,
"comments": null,
"phones": [{ "phone": "+77001234567", "type": "mobile" }],
"emailes": [{ "email": "john@example.com", "type": "work" }],
"contactAccounts": [],
"tags": [],
"created_at": "2026-03-26T12:00:00.000000Z",
"updated_at": "2026-03-26T12:00:00.000000Z"
}
}
}Payload fields
| Field | Type | Description |
|---|---|---|
contact.id | integer | Internal contact ID |
contact.displayName | string|null | Contact display name |
contact.firstName | string|null | First name |
contact.lastName | string|null | Last name |
contact.status | string | lead or customer |
contact.phones | array | Phone numbers with phone and type fields |
contact.emailes | array | Email addresses with email and type fields (note: the field name is emailes) |
contact.contactAccounts | array | Linked platform accounts |
contact.tags | array | Tags assigned to the contact |