Webhooks
List webhook delivery logs (organization)
Paginated **webhook delivery logs** for your organization (each row is one outbound HTTP attempt). Optional **`projectId`** query filters to a project that belongs to your org. Use each log document’s **`_id`** (MongoDB ObjectId) as **`webhookId`** when calling **`POST /api/webhooks/retry/{webhookId}`** after a failed delivery. Organization **JWT only** (`OrgBearerAuth`); project API keys are not accepted on this route.
/api/webhooksSDK 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.listWebhooks();const { data: result } = await webhooks.listWebhooks();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 →Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | No | — |
limit | integer | No | — |
status | string | No | — |
event | string | No | — |
projectId | string | No | Optional; restrict logs to this project (must belong to your org). |
Responses
{
"webhooks": [
{
"_id": "685af3992f9c4c96514247e9",
"org": "65a1b2c3d4e5f6789012345a",
"project": "65a1b2c3d4e5f6789012345b",
"webhookId": "manual-1712140800123",
"event": "custom.test",
"url": "https://example.com/webhook",
"method": "POST",
"status": "success",
"attempts": 1,
"duration": 142,
"payload": {
"hello": "world"
},
"response": {
"status": 200,
"body": {
"ok": true
}
},
"headers": {
"Content-Type": "application/json",
"User-Agent": "MUDBASE-Webhook/1.0",
"X-MUDBASE-Event": "custom.test",
"X-MUDBASE-Project": "65a1b2c3d4e5f6789012345b"
},
"createdAt": "2026-04-03T10:00:00.000Z",
"updatedAt": "2026-04-03T10:00:00.200Z"
}
],
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}{
"webhooks": [
{
"_id": "685af3992f9c4c96514247e9",
"org": "65a1b2c3d4e5f6789012345a",
"project": "65a1b2c3d4e5f6789012345b",
"webhookId": "manual-1712140800123",
"event": "custom.test",
"url": "https://example.com/webhook",
"method": "POST",
"status": "success",
"attempts": 1,
"duration": 142,
"payload": {
"hello": "world"
},
"response": {
"status": 200,
"body": {
"ok": true
}
},
"headers": {
"Content-Type": "application/json",
"User-Agent": "MUDBASE-Webhook/1.0",
"X-MUDBASE-Event": "custom.test",
"X-MUDBASE-Project": "65a1b2c3d4e5f6789012345b"
},
"createdAt": "2026-04-03T10:00:00.000Z",
"updatedAt": "2026-04-03T10:00:00.200Z"
}
],
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}Errors
| Code | Meaning |
|---|---|
400 | — |
403 | — |
500 | — |