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.

97 events covered

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.

Key facts

Signature header
None (unsigned)
How events are identified
eventName field in the body
Body format
JSON

Content type: application/json.

Envelope
eventName, eventTimestamp, id, companyId, data
Agent skill
npx skills add hookdeck/webhook-skills --skill oyster-webhooks

Verify Oyster webhooks →

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

  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 →
  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 →
  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 →
  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 →

Oyster webhook best practices

Common Oyster webhook events

Hiring

hiring.employment_engaged Employment reaches the engaged stage
hiring.contractor_engaged Contractor reaches the engaged stage
hiring.agreement_signed Hiring agreement is signed; data names its type
offboarding.engagement_terminated Engagement ends; data has the termination ID and state

Expenses and time

expenses.expense_approved Expense is approved; data has new and previous review state
time_off.request_status_changed Time off request moves to a new status
time_tracking.time_sheet_approved Time sheet gets approval

Money

invoicing.invoice_issued Invoice goes out; data has its reference code and type
payments.charge_paid Charge is settled; data has its ID
payments.charge_failed Charge ends in failure
engagements.payslip_uploaded New payslip is added; data identifies it and its subject

Events by resource

Resource Events Payloads
hiring

hiring.agreement_drafted · .agreement_signed · .agreement_updated · .agreement_verified +13

17 0
invoicing

invoicing.credit_note_applied · .credit_note_issued · .credit_note_refund_initiated · .credit_note_refunded +8

12 0
time_tracking

time_tracking.time_sheet_amendment_added · .time_sheet_amendment_removed · .time_sheet_approved · .time_sheet_pending_approval +6

10 0
offboarding

offboarding.agreement_generated · .agreement_sent_for_signature · .agreement_signed · .approved +5

9 0
payments

payments.charge_direct_debit_initiated · .charge_failed · .charge_marked_as_overdue · .charge_paid +5

9 0
benefits

benefits.provisioning_updated · .enrollment_applied · .enrollment_canceled · .enrollment_enrolled +4

8 0
contract

contract.change_requested · .change_updated · .change_amendment_process_started · .change_applied +4

8 0
engagements

engagements.document_deleted · .document_request_ready · .document_updated · .document_uploaded +3

7 0
expenses

expenses.expense_approved · .expense_declined · .expense_review_reverted · .expense_created

4 0
identity_verification

identity_verification.approved · .declined · .in_progress · .resubmission_required

4 0

3 more resources, including Other Oyster events. All 97 events →

In this hub

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

Keep a slow HR system from setting off Oyster's retries.

Event Gateway checks the shared secret, answers Oyster inside the 5-second window and queues each event, so your service can process it on its own schedule.

Not affiliated with Oyster. Facts are compiled from public sources and linked inline.