# Oyster webhooks

Oyster webhooks are JSON `POST` requests the Oyster platform sends to an endpoint you register through its API when something happens in hiring, contracts, expenses, time off, invoicing, payroll and more.

Agent skill: `npx skills add hookdeck/webhook-skills --skill oyster-webhooks` ([details](https://hookdeck.com/webhooks/oyster/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [Oyster's official docs](https://docs.oysterhr.com/docs/getting-started-with-webhooks).

[Overview](https://hookdeck.com/webhooks/oyster) · [Webhook events (97)](https://hookdeck.com/webhooks/oyster/events) · [MCP events](https://hookdeck.com/webhooks/oyster/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/oyster/verify) · [Production guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/oyster/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `None (unsigned)` | [Oyster docs](https://docs.oysterhr.com/docs/getting-started-with-webhooks) |
| How events are identified | `eventName field in the body` | [Oyster docs](https://docs.oysterhr.com/docs/getting-started-with-webhooks) |
| Body format | `JSON` Content type: application/json. | [Oyster docs](https://docs.oysterhr.com/docs/getting-started-with-webhooks) |
| Envelope | `eventName, eventTimestamp, id, companyId, data` | [Oyster docs](https://docs.oysterhr.com/docs/getting-started-with-webhooks) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill oyster-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/oyster/skill) |

[Verify Oyster webhooks](https://hookdeck.com/webhooks/oyster/verify)

## How Oyster webhooks work

Webhooks push changes to you, so you don't have to keep polling the Oyster API. You register an endpoint with `POST /v1/webhooks`, using an access token for the company that owns your Developer Application, and Oyster starts sending events to it. That call takes only a `url` and a `sharedSecret`, with no list of events, so your handler decides which ones to act on.

Each delivery has an `eventName`, usually `namespace.event_name` such as `expenses.expense_approved`, along with `eventTimestamp`, an `id` prefixed `wh_`, `companyId` and a `data` object. Oyster's schemas show `data` holding IDs and a few status fields rather than the whole record, so fetch the rest from the API. Oyster documents no payload versioning.

## Setting up Oyster webhooks

- Create an endpoint with `POST https://api.oysterhr.com/v1/webhooks`, sending `url` and `sharedSecret`. The access token needs the `subscribe` scope. Keep the ID it returns: you need it to update or delete the endpoint.
- Send a test with `POST /v1/webhooks/{id}/test` and a `data` object of your own, or request a developer sandbox, whose API is at `api-sandbox.oysterhr.com`.
- `GET /v1/webhooks/dispatches` lists dispatches with each one's last response code and retry count. Oyster documents no way to resend one.
- To receive through Event Gateway, create a source with the Oyster type, enter your `sharedSecret` in its Shared Secret field, with or without the `Bearer ` prefix, and register the source URL as `url`.

## Delivery behaviour

- **Timeout:** 5 seconds. without a `200` by then, Oyster counts the dispatch as failed. [Guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** up to 9 attempts. over about 48 hours, with gaps growing from 30 seconds to 1 day, plus jitter. [Guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#retries)
- **After retries:** not documented. Oyster describes no resend, and doesn't say if failures disable an endpoint. [Guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** possible. Oyster says webhooks may arrive more than once, so dedupe on `id`. [Guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

1. **A slow handler triggers retries.** Oyster treats anything other than a `200` within 5 seconds as a failed dispatch and tries again later. Respond first and do the work in a background job. [Answer inside the 5 seconds](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#timeouts)
2. **The same webhook arrives twice.** Oyster can deliver a webhook more than once. Store each `id`, which is prefixed `wh_`, before you process it and skip repeats. [Deduplicate on id](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#duplicates)
3. **An older event lands after a newer one.** Retries run for about 48 hours, so an older event can arrive after a newer one. Compare `eventTimestamp` with the state you last stored before applying a change. [Handle events out of order](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#ordering)
4. **Someone learns the shared secret.** Oyster repeats the same bearer value on every request and signs nothing, so anyone with the secret can send a convincing event. Keep it out of logs, and rotate it with `PATCH /v1/webhooks/{id}` if it may have leaked. [Limit what a leaked secret can do](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#other-limits)

From [Hookdeck's Oyster guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts).

## Oyster webhook best practices

- **[Answer with a 200 inside 5 seconds](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#timeouts).** Check the header, store the event and respond, then do the work in a background job.
- **[Deduplicate on id](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#duplicates).** Oyster says deliveries can repeat. Store each `id` before processing and skip repeats.
- **[Check eventTimestamp before applying a change](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#ordering).** A retry can land after a newer event, so skip anything older than the state you hold.
- **[Filter on eventName in your handler](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#choosing-events).** Creating an endpoint takes no list of events. Route on the namespace, and answer `200` to events you ignore so they aren't retried.
- **[Re-read sensitive records from the API](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#other-limits).** Nothing signs the body, so fetch the record by the IDs in `data` before acting on an event such as a terminated engagement.
- **[Match companyId first if you're a partner](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts#other-limits).** Partners use `companyId` to find the customer an event belongs to.

## Common Oyster webhook events

### Hiring

- [hiring.employment_engaged](https://hookdeck.com/webhooks/oyster/events#hiring.employment_engaged): Employment reaches the engaged stage
- [hiring.contractor_engaged](https://hookdeck.com/webhooks/oyster/events#hiring.contractor_engaged): Contractor reaches the engaged stage
- [hiring.agreement_signed](https://hookdeck.com/webhooks/oyster/events#hiring.agreement_signed): Hiring agreement is signed; data names its type
- [offboarding.engagement_terminated](https://hookdeck.com/webhooks/oyster/events#offboarding.engagement_terminated): Engagement ends; data has the termination ID and state

### Expenses and time

- [expenses.expense_approved](https://hookdeck.com/webhooks/oyster/events#expenses.expense_approved): Expense is approved; data has new and previous review state
- [time_off.request_status_changed](https://hookdeck.com/webhooks/oyster/events#time_off.request_status_changed): Time off request moves to a new status
- [time_tracking.time_sheet_approved](https://hookdeck.com/webhooks/oyster/events#time_tracking.time_sheet_approved): Time sheet gets approval

### Money

- [invoicing.invoice_issued](https://hookdeck.com/webhooks/oyster/events#invoicing.invoice_issued): Invoice goes out; data has its reference code and type
- [payments.charge_paid](https://hookdeck.com/webhooks/oyster/events#payments.charge_paid): Charge is settled; data has its ID
- [payments.charge_failed](https://hookdeck.com/webhooks/oyster/events#payments.charge_failed): Charge ends in failure
- [engagements.payslip_uploaded](https://hookdeck.com/webhooks/oyster/events#engagements.payslip_uploaded): New payslip is added; data identifies it and its subject

## Events by resource

| Resource | Events | Payloads |
|---|---|---|
| [hiring](https://hookdeck.com/webhooks/oyster/events#resource-hiring) | 17 | 0 |
| [invoicing](https://hookdeck.com/webhooks/oyster/events#resource-invoicing) | 12 | 0 |
| [time_tracking](https://hookdeck.com/webhooks/oyster/events#resource-time-tracking) | 10 | 0 |
| [offboarding](https://hookdeck.com/webhooks/oyster/events#resource-offboarding) | 9 | 0 |
| [payments](https://hookdeck.com/webhooks/oyster/events#resource-payments) | 9 | 0 |
| [benefits](https://hookdeck.com/webhooks/oyster/events#resource-benefits) | 8 | 0 |
| [contract](https://hookdeck.com/webhooks/oyster/events#resource-contract) | 8 | 0 |
| [engagements](https://hookdeck.com/webhooks/oyster/events#resource-engagements) | 7 | 0 |
| [expenses](https://hookdeck.com/webhooks/oyster/events#resource-expenses) | 4 | 0 |
| [identity_verification](https://hookdeck.com/webhooks/oyster/events#resource-identity-verification) | 4 | 0 |

3 more resources. [All 97 events](https://hookdeck.com/webhooks/oyster/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/oyster/events): Every covered Oyster event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/oyster/mcp-events): How an agent subscribes to Oyster events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/oyster/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/oyster/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/oyster/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill oyster-webhooks`
---

Not affiliated with Oyster. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/oyster.json) · [Report a correction](https://hookdeck.com/contact)
