---
title: "Replay Job Webhook"
method: POST
path: "/jobs/{jobId}/webhook"
---

# Replay Job Webhook

`POST /jobs/{jobId}/webhook`

## Request

- Base URL: `https://pixeldojo.ai/api/v1`
- URL: `https://pixeldojo.ai/api/v1/jobs/{jobId}/webhook`
- Auth: HTTP bearer

Redeliver the terminal webhook for a completed or failed job.

## Path parameters

- `jobId` string, required

## Response `200`

Replay attempt result

- object
  - `replayed` boolean, required
  - `replayError` string
  - `job` Job, required
    - `jobId` string, required
    - `apiId` string, required
    - `status` 'pending' | 'processing' | 'completed' | 'failed', required
    - `creditCost` number, required
    - `refunded` boolean, required
    - `error` string
    - `output` JobOutput
      - `images` string[]
      - `video` string, uri
    - `assets` AssetReference[], required
      - `assetId` string, required
      - `kind` 'image' | 'video', required
      - `url` string, uri, required
      - `apiId` string, required
      - `jobId` string, required
      - `expiresAt` string, date-time, required: When this file is deleted: 1 hour after the job completed. Download it before then.
    - `webhook` WebhookState, required
      - `configured` boolean, required
      - `url` string, uri
      - `delivered` boolean, required
      - `attempts` integer, required
      - `lastError` string
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `expiresAt` string, date-time, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `404`: Not found
- `409`: Validation error

---

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