---
title: "Test Webhook"
description: "Send a test event delivery to all URLs configured on the org's signature webhook. Returns a summary of delivery results including any per-URL error messages."
url: "https://docs.turbodocx.com/docs/API/test-webhook"
---

# Test Webhook

> Send a test event delivery to all URLs configured on the org's signature webhook. Returns a summary of delivery results including any per-URL error messages.

The Test Webhook endpoint sends a sample event delivery to every URL configured on your signature webhook and returns a per-URL summary of the result. It creates a real delivery record, identical to a delivery triggered by an actual TurboSign event, so it also shows up in [List Webhook Deliveries](https://docs.turbodocx.com/docs/API/list-webhook-deliveries.md).

## When to use it

Use this endpoint right after creating or updating a webhook to confirm your receiving endpoint is reachable and returns a 2xx response, before relying on it for real signature events.

## Example request

```bash
curl -X POST "https://api.turbodocx.com/api/webhooks/signature/test" \
  -H "Authorization: Bearer $TURBODOCX_API_KEY" \
  -H "x-rapiddocx-org-id: $TURBODOCX_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "eventType": "signature.document.completed",
    "payload": {"documentId": "doc_abc123", "status": "completed"}
  }'
```

Both `eventType` and `payload` are optional; omit them to send a default sample payload for a default event type.

## Example response

```json
{
  "data": {
    "deliveries": [
      {
        "id": "d3a1c2b4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "eventType": "signature.document.completed",
        "url": "https://example.com/webhooks/turbodocx",
        "httpStatus": 200,
        "attemptCount": 1,
        "maxAttempts": 3,
        "isDelivered": true,
        "status": "delivered"
      }
    ],
    "summary": { "total": 1, "successful": 1, "failed": 0, "errors": [] }
  },
  "message": "Test webhook sent successfully to all URLs"
}
```

If a URL returns a non-2xx status or times out, its entry has `isDelivered: false` and `status: "retrying"` (while attempts remain) or `"failed"` (once all attempts are exhausted), with details in `errorMessage`. `summary.failed`/`summary.errors` do not currently reflect HTTP-level failures; they only count a database error while creating the delivery record, so a URL that returns 4xx/5xx or times out through all attempts still increments `summary.successful` and leaves `summary.errors` empty. Inspect each `deliveries[]` entry's `isDelivered`, `status`, and `errorMessage` to detect a failing receiver rather than relying on `summary.failed`.

## Common errors

| Status | When | Response body |
| ------ | ---- | ------------- |
| 401 | Missing or invalid API key/token, or the organization cannot be resolved | Empty (status only) |
| 403 | The key's role is not administrator | Empty (status only) |
| 404 | No webhook with that name exists in your organization | `{ "error": "Webhook not found" }` |
| 400 | The webhook exists but `isActive` is `false` | `{ "error": "Cannot test inactive webhook" }` |

## Related endpoints

- [Get Webhook](https://docs.turbodocx.com/docs/API/get-webhook.md) to confirm the webhook's URLs and events before testing
- [List Webhook Deliveries](https://docs.turbodocx.com/docs/API/list-webhook-deliveries.md) to review this and past delivery attempts
- [Replay Webhook Delivery](https://docs.turbodocx.com/docs/API/replay-webhook-delivery.md) to retry a specific failed delivery
