---
title: "Retry a failed webhook delivery"
method: POST
path: "/v1/webhooks/{id}/deliveries/{delivery_id}/retry"
tags: ["Webhooks"]
---

# Retry a failed webhook delivery

`POST /v1/webhooks/{id}/deliveries/{delivery_id}/retry`

## Request

- Base URL: `https://api.astrocal.dev`
- URL: `https://api.astrocal.dev/v1/webhooks/{id}/deliveries/{delivery_id}/retry`
- Auth: HTTP bearer

Resets a failed delivery for re-dispatch by the background retry worker. Sets status back to `pending`, clears attempts and response data, and sets `next_retry_at` to now for immediate pickup.

## Path parameters

- `id` string, uuid, required
- `delivery_id` string, uuid, required

## Response `200`

Delivery queued for retry

- object
  - `id` string, uuid, required
  - `webhook_endpoint_id` string, uuid, required
  - `event_type` string, required
  - `payload` object, required
  - `status` 'pending' | 'success' | 'failed', required
  - `attempts` integer, required
  - `last_attempt_at` string, nullable, required
  - `response_status_code` integer, nullable, required
  - `response_body` string, nullable, required
  - `next_retry_at` string, nullable, required
  - `created_at` string, required

## Other responses

- `401`: Unauthorized
- `404`: Webhook endpoint or delivery not found
- `409`: Delivery is not in failed status

---

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