> For the complete documentation index, see [llms.txt](https://docs.terminal.africa/tship/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.terminal.africa/tship/webhooks/replay-webhook.md).

# Replay Webhook

## /webhooks

<mark style="color:green;">`POST`</mark> `https://api.terminal.africa/v1/webhooks/replay`

Re-send a webhook notification. Queued asynchronously

#### Headers

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Set value to `Bearer SECRET_KEY` |
| Content-Type                                    | String | Set value to `application/json`  |

#### Request Body

| Name         | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| shipment\_id | String | Required if `delivery_id` is not provided. Must be sent together with `event`.                                                                                                                                                                                                                                                                                                             |
| delivery\_id | String | <p>Unique ID of a previous webhook delivery attempt (e.g. <code>WD-9Z8Y7X6W5V4U3T2S</code>).<br>Required if <code>shipment\_id</code> and <code>event</code> are not both provided. Use this to replay the exact stored payload from a specific delivery attempt.</p>                                                                                                                      |
| event        | String | <p>Shipment webhook event to replay.</p><p>Required if <code>delivery\_id</code> is not provided. Must be sent together with <code>shipment\_id</code>.</p>                                                                                                                                                                                                                                |
| webhook\_id  | String | <p>ID of a specific webhook endpoint (e.g. <code>WA-1234567890ABCDEF</code>). Limits replay to that URL instead of all endpoints subscribed to the event.<br>Optional in all cases. Omit to replay to every active webhook subscribed to the event.</p><p>If provided, that webhook must exist, be active, and be subscribed to the event being replayed. Otherwise the request fails.</p> |

{% tabs %}
{% tab title="200: Webhook replay queued successfully" %}

```
{
  "status": true,
  "message": "Webhook replay queued successfully",
  "data": {
    "shipment_id": "SH-ABC123",
    "event": "shipment.delivered",
    "webhook_event_id": "WE-1A2B3C4D5E6F7G8H",
    "delivery_id": "WD-9Z8Y7X6W5V4U3T2S",
    "replay_mode": "stored_payload"
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.terminal.africa/tship/webhooks/replay-webhook.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
