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.

AuthBearer (JWT)
GroupWebhooks
Rate limitSee Rate Limits
POST/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

live

Test this endpoint with your own credentials. Your requests will be sent to the live API.

Use the auth endpoints to obtain a JWT.

No Request Yet

Send a request to see the full inspector

Authentication

Requires JWT
Note
Include your JWT in the Authorization: Bearer YOUR_TOKEN header (user-facing apps, RBAC). View authentication guide →

Path Parameters

NameTypeRequiredDescription
webhookIdstringYesWebhookLog document `_id` (delivery log id).

Responses

200Retry queued
json
{
  "message": "Webhook retry initiated",
  "webhookId": "685af3992f9c4c96514247e9"
}
{
  "message": "Webhook retry initiated",
  "webhookId": "685af3992f9c4c96514247e9"
}
400Log already succeeded
json
{
  "error": "Webhook already succeeded"
}
{
  "error": "Webhook already succeeded"
}
401-
403-
404Log not found or not in your org
500-

Errors

CodeMeaning
400Log already succeeded
401-
403-
404Log not found or not in your org
500-
Edit this page on GitHub
Chat with us