# Webhook events

> The kinds of change a webhook can subscribe to, every event type in each, and when each one is sent.

A webhook address subscribes by kind of change. Each kind has a small set of event types. The `data` in every event is the record in the shape the matching API operation returns.

## The events

| Kind | Event types | Sent when | `data` matches |
| --- | --- | --- | --- |
| Schedule | `assignment.created`, `assignment.updated`, `assignment.cancelled` | A shift or call is published, changed or cancelled | [Schedule API](https://staffedly.com/docs/api/assignments) |
| Open shifts | `open_shift.created`, `open_shift.updated`, `open_shift.filled`, `open_shift.cancelled` | A shift needs filling, changes, is filled, or is withdrawn | [Open shifts API](https://staffedly.com/docs/api/open-shifts) |
| Time off | `leave.created`, `leave.updated` | Leave is requested, approved, changed or cancelled | [Time off API](https://staffedly.com/docs/api/leave) |
| Hours | `time_entry.created`, `time_entry.updated` | Someone clocks in or out, or a record is corrected or approved | [Time records API](https://staffedly.com/docs/api/time-entries) |
| People | `provider.created`, `provider.updated` | A person is added or their details change | [People API](https://staffedly.com/docs/api/providers) |
| Credentials | `credential.created`, `credential.updated` | A credential is added, renewed, or nears or passes its expiry | [Credentials API](https://staffedly.com/docs/api/credentials) |
| Documents | `document.created`, `document.updated` | A document is stored (uploaded or signed), changed or archived. The file is not included | [Documents API](https://staffedly.com/docs/api/documents) |
| Signing | `sign_request.created`, `sign_request.updated`, `sign_request.completed`, `sign_request.declined`, `sign_request.cancelled` | A document is sent for signature, completed, declined, voided or expires | [Signing requests API](https://staffedly.com/docs/api/sign-requests) |
| Onboarding | `onboarding.created`, `onboarding.updated`, `onboarding.ready`, `onboarding.cancelled` | A checklist is sent, opened, finished (the person is ready to work) or cancelled. Never their answers, bank details or files | [Onboarding](https://staffedly.com/docs/people/onboarding) |
| Applications | `application.created`, `application.updated`, `application.hired` | Someone applies, moves stage, or is hired. Includes the candidate's name, email and phone, the job and the source | [Recruiting](https://staffedly.com/docs/people/recruiting) |
| Bookings | `booking.created`, `booking.rescheduled`, `booking.cancelled` | Someone books a call from a booking page, moves it to another time, or it is cancelled (by them or by your team). Never the booker's manage link | [Bookings API](https://staffedly.com/docs/api/bookings) |
| Call notes | `meeting.notes_ready` | A video call's notes, or notes from an uploaded recording or transcript, are ready. Carries the AI summary of what was said, never the transcript | [Video calls API](https://staffedly.com/docs/api/meetings) |
| Form answers | `form.response_received` | Someone answers a form or survey, incident reports included. Carries the answers; uploaded files are named, not included | [Forms API](https://staffedly.com/docs/api/forms) |
| Incident reports | `incident.reported` | Someone answers a form made from the incident report template | [Forms API](https://staffedly.com/docs/api/forms) |
| Job offers | `offer.accepted`, `offer.declined`, `offer.expired` | A candidate accepts or declines an offer (by its link or by signing the letter), or its answer-by day passes. Never the private link | [Job offers API](https://staffedly.com/docs/api/offers) |
| To-dos | `todo.assigned` | A to-do is given to someone other than the person who made it, or moved to another person | [To-dos API](https://staffedly.com/docs/api/todos) |
| Handbook | `handbook.confirmed` | Someone confirms they read a handbook page. One event per person per version | [Handbook API](https://staffedly.com/docs/api/handbook) |

A test from the screen sends an event of type `ping`.

## How changes are noticed

Staffedly looks at your organization's records on each pass and compares them with how they looked last time. An event is sent for each record whose public shape changed. This means a change is announced whichever part of the app made it: a person on a screen, the automatic fill, a QGenda sync, Copilot, the API, or an approved MCP proposal.

A few consequences are worth knowing:

- **Drafts are never sent.** A shift is `assignment.created` at the moment it is published.
- **Read the status in `data`.** A `leave.updated` event covers approval, a change of dates and cancellation; the record's `status` tells you which.
- **Two quick changes can arrive as one event** if both happen between two passes. The event carries the record as it is at the time of the pass.
- **A change to a field the API does not return sends nothing.**
- **Bookings, call notes, form answers, incident reports, job offers, to-dos and the handbook announce only the moments listed above.** Other changes to those records, such as a booking's answers being edited or a to-do being ticked off, send nothing.
- **Old records drop out of view.** Shifts, open shifts and time off that ended more than about two days ago, and clock records older than about two weeks, no longer produce events.

## Example: an open shift is filled

```json
{
  "id": "evt_…",
  "type": "open_shift.filled",
  "createdAt": "2027-01-11T14:02:11.000Z",
  "organizationId": "cmwwzj8f40000qrmrky4ouqvg",
  "data": {
    "id": "cmwx0a1b20001qr0000example",
    "facilityId": "cmwwzj9120003qr03example00",
    "start": "2027-01-12T12:00:00.000Z",
    "end": "2027-01-12T20:00:00.000Z",
    "role": "CRNA",
    "category": "shift",
    "status": "filled",
    "count": 1,
    "filledCount": 1
  }
}
```

The record carries every field listed for `GET /api/v1/open-shifts` in the [API reference](https://staffedly.com/docs/api/open-shifts); the example is shortened. To learn who took the shift, read the new assignment from the `assignment.created` event that follows, or from `GET /api/v1/assignments`.

## Questions

### Can I subscribe to one event type only?

You subscribe by kind, for example Open shifts, and receive every event type in it. Filter on `type` in your handler.

### I added a kind later. Will I get old changes?

No. Events start with the next change after you subscribe. The same holds for kinds Staffedly adds: when bookings, call notes, form answers and the others arrived, addresses that were already listening first looked at the existing records in silence, so nothing that had already happened was sent.
