# Send a test event

`POST` `https://goblins-call-api.onrender.com/v1/webhooks/:id/test`

Delivers one signed `webhook.test` event to the subscription’s URL and tells you how your endpoint answered. It is tried once, with no retries.

Needs a [workspace API key](https://www.cracklehq.com/docs/authentication).

## Path parameters

- `id` (string, required): The subscription’s ID, such as `wh_3f9a1c2b7d4e5f60`.

## Response

- `ok` (boolean): Whether your endpoint answered with a 2xx status.
- `status` (integer): Your endpoint’s HTTP status, when it answered at all.
- `error` (string): What went wrong when it did not answer.

## Errors

- `404`: No subscription in your workspace has that ID.

Every request can also answer `401`, `429` and `500`: see [Errors](https://www.cracklehq.com/docs/errors).

Request:

cURL:

```bash
curl -X POST "https://goblins-call-api.onrender.com/v1/webhooks/wh_3f9a1c2b7d4e5f60/test" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
```

Node.js:

```js
const response = await fetch('https://goblins-call-api.onrender.com/v1/webhooks/wh_3f9a1c2b7d4e5f60/test', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CRACKLE_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

Python:

```python
import os
import requests

response = requests.post(
    "https://goblins-call-api.onrender.com/v1/webhooks/wh_3f9a1c2b7d4e5f60/test",
    headers={"Authorization": f"Bearer {os.environ['CRACKLE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
```

Response · 200 OK:

```json
{
  "ok": true,
  "status": 200
}
```

Source: https://www.cracklehq.com/docs/reference/webhooks/test
