Webhooks
Retry a failed webhook delivery
**`webhookId`** (path) = **`WebhookLog._id`** (MongoDB ObjectId)—the same value returned as **`webhookId`** from **`POST /api/webhooks/trigger`** and as **`_id`** on **`GET /api/webhooks`** / **`GET /api/webhooks/projects/{projectId}`**. **Not** the string **`webhookId`** field stored on the log document (e.g. `manual-173…`); use the document **`_id`** for this path. Resets a non-success log to **pending** and re-delivers. **400** if status is already **`success`**. **Auth:** Organization JWT only; project API keys are not accepted.
/api/webhooks/retry/{webhookId}SDK setup
Create a client and set credentials (JWT and/or API key) before calling the API. Match the authentication type shown above.
import { Configuration, WebhooksApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig',
});
const webhooks = new WebhooksApi(configuration);import { Configuration, WebhooksApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig',
});
const webhooks = new WebhooksApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await webhooks.retryWebhook("wh_Jcs81TdqTk6CYF");const { data: result } = await webhooks.retryWebhook("wh_Jcs81TdqTk6CYF");Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Authentication
Authorization: Bearer YOUR_TOKEN header (user-facing apps, RBAC). View authentication guide →Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
webhookId | string | Yes | WebhookLog document `_id` (delivery log id). |
Responses
{
"message": "Webhook retry initiated",
"webhookId": "685af3992f9c4c96514247e9"
}{
"message": "Webhook retry initiated",
"webhookId": "685af3992f9c4c96514247e9"
}{
"error": "Webhook already succeeded"
}{
"error": "Webhook already succeeded"
}Errors
| Code | Meaning |
|---|---|
400 | Log already succeeded |
401 | — |
403 | — |
404 | Log not found or not in your org |
500 | — |