# Webhooks

Instead of polling `GET /jobs/{job_id}/postings`, give eQuest a URL and we'll call it when a posting's status changes.

## Setting it up

Set `webhook_url` in one of two places:

| Where | What it covers |
| --- | --- |
| `webhook_url` on the draft | Every posting created from that draft. |
| `posting_instructions.webhook_url` on a posting | That one board only. Overrides the draft's URL for that posting. |

The URL must be public and accept a `POST` with a JSON body. Return any 2xx status to acknowledge it.

## What you get

One event per posting status change. Field names in the webhook body are camelCase, which is different from the rest of the API. Empty strings mean the value isn't set.

```text
{
  "job": {
    "id": 469048,
    "requisitionNumber": "REQ-20418",
    "unpostAt": "",
    "language": "",
    "customer": "600600"
  },
  "group": { "id": 147 },
  "action": {
    "status": "COMPLETED",
    "action": "UPDATE"
  },
  "posting": {
    "id": 1828819,
    "trackingId": "4991",
    "unpostAt": "",
    "expiresAt": "2026-09-18T22:39:56Z",
    "scheduledAt": "",
    "board": { "id": 447, "pipelineId": "testboard_realtime" },
    "boardStatus": {
      "state": "posted",
      "queuedAt": "2026-08-23T05:56:17Z",
      "postedAt": "2026-08-23T05:56:19Z"
    },
    "liveUrl": "https://www.example-board.com/jobs/4991",
    "language": ""
  },
  "webhookUrl": "https://ats.example.com/webhooks/equest"
}
```

## Actions and statuses

| Field | Value | Meaning |
| --- | --- | --- |
| `action.action` | `ADD` | A new posting was sent to the board. |
|   | `UPDATE` | An existing posting was updated. |
|   | `DELETE` | The posting was removed from the board. |
| `action.status` | `ACCEPTED` | eQuest took it and it's waiting to go out. |
|   | `SCHEDULED` | It goes out at the scheduled time. |
|   | `COMPLETED` | Done. The board accepted it. |
|   | `DEFERRED` | The board didn't accept it. The reason is in `GET /jobs/{job_id}/postings`. |

## Fields

| Field | Meaning |
| --- | --- |
| `job.id` | The eQuest job ID. Same one you use with the Jobs endpoints. |
| `job.requisitionNumber` | Your requisition number. |
| `job.customer` | Your eQuest customer ID. |
| `action.action` | What eQuest did. See the table above. |
| `action.status` | Where it stands. See the table above. |
| `posting.id` | The posting ID. Same as `id` from `GET /jobs/{job_id}/postings`. |
| `posting.board.id` | The board it went to. |
| `posting.boardStatus.state` | One of `queued`, `scheduled`, `posted`, `deferred`, `expired`. See [Field Values](https://connect.equest.com/joblauncher-api/docs/field-values). |
| `posting.liveUrl` | Where the job is on the board, once it's posted. |
| `posting.expiresAt` | When it expires on the board. |

## Tips

-   Use `posting.id` or `job.requisitionNumber` to match the event to your own record.
-   Don't assume events arrive in order. Check `boardStatus.state` rather than counting calls.
-   If your endpoint is down, call `GET /jobs/{job_id}/postings` to catch up.
