AISARAISAR
All webhooks

Contacts

Contact created

contact.created

Fires 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

FieldTypeDescription
contact.idintegerInternal contact ID
contact.displayNamestring|nullContact display name
contact.firstNamestring|nullFirst name
contact.lastNamestring|nullLast name
contact.statusstringlead or customer
contact.phonesarrayPhone numbers with phone and type fields
contact.emailesarrayEmail addresses with email and type fields (note: the field name is emailes)
contact.contactAccountsarrayLinked platform accounts
contact.tagsarrayTags assigned to the contact