---
title: "A knowledge job failed for good, after its retries. errorCode is a code from the error catalog. Sent once per run; a retry that later succeeds sends no failure."
method: POST
path: "job.failed"
---

# A knowledge job failed for good, after its retries. errorCode is a code from the error catalog. Sent once per run; a retry that later succeeds sends no failure.

`POST job.failed` (webhook)

Sent as POST to the account webhook URL. Headers: X-Smartwebchat-Event, X-Smartwebchat-Timestamp, X-Smartwebchat-Signature (HMAC over timestamp and body). data is the object shown in the example.

## Payload

- object
  - `event` 'job.failed', required
  - `timestamp` string, date-time, required
  - `data` object, required
    - `jobId` string, required
    - `jobType` 'knowledge_crawl' | 'knowledge_source', required
    - `status` 'failed', required
    - `errorCode` string, required

## Acknowledgement `2XX`

Received. Any other status is logged; delivery to the account webhook URL is not retried.

---

[API](https://skmtc.dev/smartwebchat/apis/smartwebchat-api.md) · [All operations](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/revisions/1b052502dacb?raw)
