---
title: "Send a test event to an organization webhook"
description: "Send a sample event now, signed like a real delivery, and answer with your endpoint's response. `POST /api/v1/organizations/{id}/webhooks/{webhook_id}/test`"
url: https://www.unitpost.com/docs/platform/post-organizations-id-webhooks-webhook-id-test
section: "Platform API reference"
updated: 2026-11-17
---
# Send a test event to an organization webhook

`POST /api/v1/organizations/{id}/webhooks/{webhook_id}/test`

Send a sample event now, signed like a real delivery, and answer with your endpoint's response. It is not kept in the delivery log. A test happens in no workspace: its `workspace_id` and `external_id` are null. Takes an organization key (`ok_live_…`) with `organizations:write`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The organization's id (`org_…`), from `GET /whoami` or Organization → API. |
| `webhook_id` | path | string | yes | The organization webhook endpoint's id (`wh_…`). |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | One of: `webhook_test`. |
| `delivered` | boolean | yes | Whether the endpoint accepted the probe (2xx). |
| `response_status` | integer | yes | The HTTP status the endpoint returned, or null on a transport error. |
| `event_type` | string | yes | The sample event type that was sent. |
| `error` | string | yes | A transport/error message when delivery failed, else null. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The probe result. |
| 401 | Missing or invalid organization key (a workspace key is refused). |
| 403 | API access not approved for the organization, the key lacks the capability, or no User-Agent. |
| 404 | Not this key's organization, or not one of its webhook endpoints (a workspace's endpoint is a 404 here). |
| 429 | Too many tests this minute (`Retry-After`), or the organization's rate limit. |

## Example request

```bash
curl -X POST 'https://www.unitpost.com/api/v1/organizations/org_123/webhooks/wh_123/test' \
  -H 'Authorization: Bearer YOUR_ORG_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "webhook_test",
  "delivered": false,
  "response_status": 0,
  "event_type": "string",
  "error": "string"
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/platform/post-organizations-id-webhooks-webhook-id-test
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
