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

Queues one `webhook.test` batch through the real delivery path. The outcome shows on the resource and in the traffic log.

## `POST /api/v1/domains/{domain}/event-webhook/test`

### Path parameters

- `domain` (string, required) — Domain name

### 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 domain 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/domains/{domain}/event-webhook/test' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

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

```ts
const eventWebhookTestResult = await openemail.domains.testEventWebhook(domain)
```
