# Send a test event to the mailbox's event webhook

Queues one `webhook.test` batch through the real delivery path. The outcome shows on the resource (lastDeliveredAt / lastFailureAt) and in the traffic log — deliberately not a synchronous probe.

## `POST /api/v1/mailboxes/{mailboxId}/event-webhook/test`

### Path parameters

- `mailboxId` (string, required) — Mailbox ULID identifier

### Responses

**202** — Test batch queued

`application/json` → EventWebhookTestResult

- `batchId` (string, required) — The queued test batch's id — its outcome shows on the resource and in traffic

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — No hook configured, or mailbox not accessible

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X POST 'https://api.open.email/api/v1/mailboxes/{mailboxId}/event-webhook/test' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.mailboxes.testEventWebhook`](/docs/sdks/typescript/mailboxes/test-event-webhook)

```ts
const eventWebhookTestResult = await openemail.mailboxes.testEventWebhook(mailboxId)
```
