# Workable webhooks in production: duplicates, ordering, retries and timeouts

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

This guide covers the problems Workable webhooks cause in production and how to handle each one. What Workable sends is on the [Workable webhooks](/webhooks/workable) overview, every event is on [Workable webhook events](/webhooks/workable/events), and signature checks are on [Verify Workable webhooks](/webhooks/workable/verify).

## At a glance

| Problem | What to do | With Event Gateway |
| --- | --- | --- |
| [Timeouts](#timeouts) | Return exactly `200` once the request is verified and stored | Accepts each request at once, then queues it for your service |
| [Duplicates](#duplicates) | Deduplicate on `event_type`, `id` and `fired_at`, not `id` alone | Ignores repeats of those fields within a window you set |
| [Ordering](#ordering) | Compare `fired_at`, and treat `data` as the latest state | Logs every event and attempt, and replays after a fix |
| [Retries](#retries) | Return an error only when you couldn't store the event, and reconcile from the API | Retries delivery on your schedule and replays past events |
| [Choosing events](#choosing-events) | Filter candidate events at the source; route on `event_type` | Filters and routes events on any body field |
| [Testing](#testing) | Use a test job, and read one real delivery | Forwards to localhost and replays past events |
| [Other limits](#other-limits) | Keep the token in one place; confirm the encoding | Verifies the signature with the key stored on the source |

## Workable webhook timeouts and slow handlers {#timeouts}

Workable documents no response timeout, so return `200` as soon as the request is verified and stored, and do everything else later.

**Why it happens:** Workable says the response status should be `200`, or it treats the request as an error and replays it. It gives no time limit to tune a handler against. Read literally, that sentence also covers other 2xx codes, so a framework that answers `201` or `204` by default could get replays.

**Fix it in your handler:**

1. Verify the signature, store the event, then return exactly `200`.
2. Do the slow work from a queue. See [why to process webhooks asynchronously](/webhooks/guides/why-implement-asynchronous-processing-webhooks).
3. Keep follow-up calls, such as `GET /employees/:id`, out of the request path.

**With Event Gateway:** Hookdeck accepts each Workable request as soon as it arrives, then queues it and delivers it to your service with its own [delivery timeout](/docs/destinations#set-a-delivery-timeout) and retries.

## Duplicate Workable webhooks {#duplicates}

Workable replays a request after any response other than `200`, so the same event can arrive more than once. Deduplicate on `event_type`, `id` and `fired_at` together, because `id` alone can drop real events.

**Why it happens:** Workable's candidate field table calls `id` "The event identifier", and in the candidate example it differs from `data.id`. On the employee page it reads differently: the four employee examples all share one `id`, and two different time-off requests share another, so there it looks like the employee. These are documentation examples rather than captured deliveries, and Workable doesn't say whether `fired_at` stays the same on a replay. Candidate `data` is built when the request is sent, so a replay's `data` can differ too.

**Fix it in your handler:**

1. Build a key from `event_type`, `id` and `fired_at`, store it before processing and skip repeats. See [our guide to webhook idempotency](/webhooks/guides/implement-webhook-idempotency).
2. Don't compare whole bodies to find a repeat, since `data` can change between attempts.
3. Make actions safe to run twice, such as checking whether an account already exists before you provision one, in case a replay gets a new `fired_at`.

**With Event Gateway:** A [deduplication rule](/docs/deduplication#include-fields) with `include_fields` set to `body.event_type`, `body.id` and `body.fired_at` delivers the first event for that key and ignores repeats until the window has passed. Keep the window short, because a replay you send inside it is ignored too.

## Out-of-order Workable webhooks {#ordering}

Workable doesn't document delivery order, and candidate `data` shows the candidate when the request is sent. Compare `fired_at` in your handler and treat `data` as the latest known state rather than a snapshot.

**Why it happens:** Workable says the payload reflects the state at the time of the request rather than when the event fired. It says the two are usually the same, but race conditions can make them differ. So a `candidate_moved` event can show a stage the candidate has already left, and a replay sent later can carry newer data still.

**Fix it in your handler:**

1. Store the latest `fired_at` for each candidate or employee, and don't let an older event overwrite newer state.
2. For decisions that matter, have your handler fetch the record with `GET /candidates/:id` or `GET /employees/:id`.
3. For employees, wait for `employee_published` before you act on the full record. Workable's flow fetches it at that point, because `employee_created` has only minimal fields.

**With Event Gateway:** Delivery order is best effort, and Hookdeck doesn't reorder events, so keep the `fired_at` check in your handler. It logs every event and attempt, so you can see the order things arrived in, and you can replay events after a fix.

## Workable webhook retries and lost events {#retries}

Workable replays a request after a non-`200` response, but it doesn't document how often, how many times or when it stops. Plan as if a long outage could lose events.

**Why it happens:** The only documented behaviour is the replay itself. There's no retry schedule, attempt count or replay window, and no documented way to resend an event or see past deliveries.

**Fix it in your handler:**

1. Return `200` only after the event is stored, and return an error if you couldn't store it, so Workable replays it.
2. After an outage, reconcile candidates with `GET /candidates` and `updated_after`, and employees with `GET /employees`.
3. Check `GET /subscriptions` afterwards to confirm your subscriptions are still active, since Workable doesn't say whether failures affect them.

**With Event Gateway:** Hookdeck accepts each request as soon as it arrives and stores it, then [retries delivery](/docs/retries) to your service on a schedule you control and lets you replay any event, so an outage on your side doesn't depend on Workable's replays.

## Choosing and routing Workable events {#choosing-events}

Create one subscription for each event you process, filter candidate events by job and stage, and route on the body's `event_type`.

**Why it happens:** Each subscription takes one event, and target URLs must be unique: a duplicate gets `409 Conflict`. You subscribe to `timeoff_updated`, but Workable's examples arrive as `timeoff_request_approved` or `timeoff_request_reverted`. The events table also lists `candidate_deleted` and `job_deleted`, while the `event` description on `POST /subscriptions` leaves them out, and neither has an example payload.

**Fix it in your handler:**

1. Give each subscription its own path or query string, such as `/webhooks/workable?event=candidate_moved`.
2. Use `job_shortcode` and `stage_slug` so you receive only what you act on. A `candidate_moved` subscription with `stage_slug` set to `hired`, for example, can trigger onboarding. These filters apply only to candidate events.
3. Route on `event_type`, handle the two time-off values, and log any value you don't recognise while still returning `200`.
4. Try subscribing to `candidate_deleted` and `job_deleted` on a test account before you rely on them.

**With Event Gateway:** Add a distinct path to the Hookdeck source URL for each subscription. Hookdeck forwards an appended path to your destination by default, so a handler routed at an exact path answers `404` unless you [disable path forwarding](/docs/destinations#edit-a-destination). [Filters](/docs/filters) match on any body field, so one connection can pass only `candidate_moved` and another can send time-off events elsewhere.

## Testing Workable webhooks {#testing}

Workable documents no test event or CLI, so test with real actions on a test job, against a public URL.

**Why it happens:** Subscriptions only fire on real events, and Workable's examples don't cover `candidate_created`, `candidate_deleted`, `job_deleted` or the `timeoff_updated` label. So the first real delivery is the first time you see those bodies and the first time you can check the signature format.

**Test it like this:**

1. Run `hookdeck listen 3000 workable --path /webhooks/workable` and subscribe the URL it prints.
2. Create a candidate or move one between stages in a test job, and confirm your handler sees the event.
3. Log the signature header from that delivery to confirm the encoding, as Workable doesn't state it. 64 hex characters is hex, and 44 characters ending in `=` is base64.

**With Event Gateway:** The Hookdeck CLI forwards events to localhost, [each request's headers and body are recorded](/docs/requests), and you can replay a past event as you change your handler, with no need to move the candidate again.

## Other Workable webhook limits {#other-limits}

**The signing key is an API credential.** Workable has no dedicated webhook secret. It signs with the account token or the OAuth application secret, so every service that verifies needs a credential that can also call the API. Verify in one place and pass verified events on, and give the token only the scopes it needs. Subscribing needs `r_candidates` or `r_employees`, and Workable warns that `r_employees` grants access to confidential employee data.

**The encoding isn't documented.** Workable says HMAC SHA256 on the payload, with no encoding or code sample. The open-source n8n and Botpress integrations use hex, so start there and confirm it against one real delivery.

**Replacing a token.** Workable warns that revoking a token stops everything that uses it, and doesn't say what happens to subscriptions made with it. Plan on creating them again with the new token and updating your verifier at the same time.

**No replay protection.** Only the payload is signed, with no timestamp, so a captured request stays valid. Your deduplication key is what stops a repeat from being processed twice.

**Thin payloads.** `employee_created` has minimal fields, and Workable describes `employee_published` as carrying only the employee ID, though its example also has `data.workEmail`. Your handler makes the follow-up call.

**No source IP list.** Workable's webhook docs list no source addresses, so rely on the signature rather than an allowlist.

**With Event Gateway:** Set your token or OAuth application secret on a Workable source and Hookdeck verifies the signature, so your services don't need the credential. A request that fails is recorded as failed verification and creates no event. For follow-up calls, a [max delivery rate](/docs/destinations#set-a-max-delivery-rate) limits how fast events reach your handler, and failed deliveries are retried.

[Get started with Hookdeck](https://dashboard.hookdeck.com/signup) for free and take control of retries that Workable doesn't document.