---
title: "Send a test event"
method: POST
path: "/webhooks/{id}/test"
tags: ["Webhooks"]
---

# Send a test event

`POST /webhooks/{id}/test`

## Request

- Base URL: `https://www.unitpost.com/api/v1`
- URL: `https://www.unitpost.com/api/v1/webhooks/{id}/test`
- Auth: HTTP bearer

Fire a sample event at the endpoint synchronously and return the receiver's response so you can debug your handler end-to-end. The probe is signed exactly like a real delivery (verify it the same way) but is not persisted to the delivery log. Configure the endpoint itself with [Update a webhook endpoint](#patch-webhooks-id). Requires the `webhooks:manage` capability.

## Response `200`

The probe result.

- WebhookTestResult
  - `object` 'webhook_test', required
  - `delivered` boolean, required: Whether the endpoint accepted the probe (2xx).
  - `response_status` integer, nullable, required: The HTTP status the endpoint returned, or null on a transport error.
  - `event_type` string, required: The sample event type that was sent.
  - `error` string, nullable, required: A transport/error message when delivery failed, else null.

## Other responses

- `401`: Missing or invalid API key.
- `403`: Insufficient scope.
- `404`: Webhook not found.

---

[API](https://skmtc.dev/unitpost/apis/unitpost-api.md) · [All operations](https://skmtc.dev/unitpost/apis/unitpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unitpost/apis/unitpost-api/revisions/86ff7c890967?raw)
