# Send a test event

`POST https://rest.wordplus.cloud/wordplus/realtime/webhooks/test`

Sends one event of type `webhook.test` to your webhook now, once, to see your server take it and check its signature.

In the packages: `realtime.webhooks.test()`.

## Answer

What the webhook did with it: taken with a 2xx, or not, with its HTTP status (0 when nothing answered) and `error` (`timeout`, `unreachable`, `not_public`).

```json
{
  "ok": true,
  "delivered": true,
  "status": 204
}
```

## Refusals

- **401**: `missing_signature`, `stale_signature` (a clock off by more than 5 minutes), `unknown_site`, `bad_signature` (a wrong secret, or a body or path other than the one signed).
- **403**: `not_included`: your plan does not include it.
- **404**: `no_webhook`: your app has no webhook address.

## Examples

`wordplus()` (in Go `app.Request()`) signs and sends the request: https://docs.wordplus.cloud/api/signing/ has it in each language.

**curl**

```bash
wordplus POST '/wordplus/realtime/webhooks/test'
```

**Node**

```js
const { delivered } = await wordplus('POST', '/wordplus/realtime/webhooks/test');
```

**Python**

```python
delivered = wordplus("POST", "/wordplus/realtime/webhooks/test")["delivered"]
```

**PHP**

```php
$delivered = wordplus('POST', '/wordplus/realtime/webhooks/test')['delivered'];
```

**Go**

```go
answer, err := app.Request("POST", "/wordplus/realtime/webhooks/test", nil)
```

