object_type
- The type of Object that triggered the webhook, such as Job, Invoice, etcevent
- The event that triggered the webhook, alwayscreated
orupdated
object
- The current representation of the object in Latchelupdated
List of properties that were updated, and what their new values are (for theupdated
event type only)
Authentication
Webhook bodies include a property named secret, and the header includes a property calledx-api-key
. Both the secret value and the x-api-key header contain a UUID that is unique to your account. Please contact Latchel Engineering to obtain your UUID codes for production and staging environments.
The platform property is always LATCHEL
. This is available for partners who wish to use one endpoint to receive data from multiple platforms.
What Triggers an Updated Webhook
Anupdated
webhook will be triggered when one or more of the properties listed in the object’s schema is changed. For convenience, the updated
property of the webhook payload will contain which of the object’s properties have changed, and what the new values are.
It should be noted that changes to related records will not trigger an object’s webhook. Examples:
- a Job’s updated webhook will be triggered if the job’s description changed (because
job.description
has changed) - a Job’s updated webhook will be triggered if the vendor for a job is changed (because
job.vendor_id
will change) - a Job’s updated webhook will not be triggered if the phone number for the vendor on the job is changed.