> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encrata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Webhook

> Send a test event to a webhook endpoint to verify connectivity.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Request

<ParamField body="id" type="string" required>
  The webhook ID to send a test event to.
</ParamField>

### Example request

```bash theme={"dark"}
curl -X POST https://encrata.com/api/webhooks/test \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"id": "360cb300-d885-4c18-af2c-d259f936bb38"}'
```

## Response

<ResponseField name="status" type="string">
  Delivery status — `sent` on success.
</ResponseField>

<ResponseField name="url" type="string">
  The URL the test event was sent to.
</ResponseField>

<ResponseField name="signature" type="string">
  The HMAC-SHA256 signature sent with the test payload. Use this to verify your signature verification logic.
</ResponseField>

### Example response

```json theme={"dark"}
{
  "status": "sent",
  "url": "https://example.com/webhook",
  "signature": "3fb19dcfef1ae27c09eb5655b45bda0c0a89c34dbc928332182afeee235361e3"
}
```

### Test payload

The test event sends the following JSON body to your endpoint:

```json theme={"dark"}
{
  "event": "test",
  "data": {
    "message": "This is a test webhook from Encrata"
  },
  "created_at": "2026-01-01T00:00:00Z"
}
```
