Webhook Events
When something happens in Astalty, every webhook subscribed to that event receives a signed POST. The payload says what happened and to which record; fetch the record from the API for its current details. Subscribe through the API Dashboard or the Webhooks endpoints.
Every event has this shape
43 events
| Event type | Triggered when |
|---|---|
| candidate.created | A candidate is added, by hand, through the API, or by applying to a job post for the first time. |
| candidate.updated | A candidate's details change, including when an existing candidate applies to another job post with new details. |
| contact.created | A new contact is added to the directory. |
| contact.updated | An existing contact's details are updated. |
| feedback.created | A piece of feedback is submitted. |
| form_submission.created | A form is submitted. |
| incident.created | An incident is reported. |
| incident.updated | An existing incident is updated, including when its status changes. |
| invoice_batch.created | A new invoice batch is created. |
| invoice_batch.finalised | An invoice batch is finalised. |
| job_application.created | A candidate submits an application to a job post. |
| job_post.closed | A job post is closed to new applications. |
| job_post.published | A job post is published and starts accepting applications. |
| organisation.created | A new organisation is added to the directory. |
| organisation.updated | An existing organisation's details are updated. |
| participant.created | A new participant is created. |
| participant_record.created | A participant record is created. |
| participant_record.expired | A participant record has expired. Sent once per expiry date, at 9am in your account's timezone, the morning after the record expires. |
| participant_record.expiring | A participant record is coming up to its expiry date. Sent 30, 14, 7 and 1 days before it, at 9am in your account's timezone; `data.reminder_days` says which reminder this is and `data.days_until_expiry` how many days are left. A record that first comes within 30 days late gets only the latest reminder due, then the later ones. |
| participant_record.updated | A participant record is updated. |
| participant.updated | An existing participant is updated. |
| referral.created | A new referral is created. |
| referral.status_changed | A referral moves to a different status. |
| referral.updated | An existing referral is updated, including when its status changes. |
| shift.cancelled | A shift is cancelled because its support or group support is cancelled, including each shift of a recurring cancellation. Cancelling one participant of a group support that goes ahead sends nothing, and so does reinstating a cancelled support or group support. |
| shift.clocked_in | A shift is clocked in, by the worker, on their behalf, or automatically. Undoing or clearing a clock in sends nothing. |
| shift.clocked_out | A shift is clocked out, by the worker, on their behalf, or automatically. Undoing or clearing a clock out sends nothing. |
| site_record.created | A site record is created. |
| site_record.expired | A site record has expired. Sent once per expiry date, at 9am in your account's timezone, the morning after the record expires. |
| site_record.expiring | A site record is coming up to its expiry date. Sent 30, 14, 7 and 1 days before it, at 9am in your account's timezone; `data.reminder_days` says which reminder this is and `data.days_until_expiry` how many days are left. A record that first comes within 30 days late gets only the latest reminder due, then the later ones. |
| site_record.updated | A site record is updated. |
| task.completed | A task is marked as completed. |
| task.created | A new task is created. |
| task.updated | An existing task is updated, including when it is completed, reassigned or moved. |
| user.deactivated | A user is deactivated. |
| user.invite_accepted | An invited user accepts their invitation. |
| user.invited | A user is invited to your account. |
| user_record.created | A user record is created. |
| user_record.expired | A user record has expired. Sent once per expiry date, at 9am in your account's timezone, the morning after the record expires. |
| user_record.expiring | A user record is coming up to its expiry date. Sent 30, 14, 7 and 1 days before it, at 9am in your account's timezone; `data.reminder_days` says which reminder this is and `data.days_until_expiry` how many days are left. A record that first comes within 30 days late gets only the latest reminder due, then the later ones. |
| user_record.updated | A user record is updated. |
| user.restricted | A user is restricted. |
| user.updated | A user's profile details are updated. |