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

# Send Test Webhook

> Sends a test webhook event to verify configuration. Useful for testing webhook endpoint and HMAC signature verification.

Sends a test webhook event to verify configuration. Useful for testing webhook endpoint and HMAC signature verification.

## Permissions

Only **OWNERS** and **ADMINS** can test webhooks.

## Path Parameters

| Parameter        | Type          | Required | Description     |
| ---------------- | ------------- | -------- | --------------- |
| `organizationId` | string (UUID) | Yes      | Organization ID |
| `id`             | string (UUID) | Yes      | Webhook ID      |

## Example Request

```bash theme={null}
curl -X POST http://localhost:3001/api/organizations/550e8400-e29b-41d4-a716-446655440000/webhooks/123e4567-e89b-12d3-a456-426614174000/test \
  -H "Authorization: Bearer <token>"
```

## Response

Returns `202 Accepted` on success. The test webhook is queued for delivery.

## Testing Your Webhook

1. **Send test request** using this endpoint
2. **Check delivery history** using `/webhooks/{id}/deliveries`
3. **Verify HMAC signature** in the webhook payload
4. **Confirm event structure** matches your expectations

## Test Event Structure

The test webhook will include:

* Event type: `webhook.test`
* Webhook metadata
* HMAC signature header
* Timestamp and event ID

## Common Errors

### 401 Unauthorized

Authentication required.

### 403 Forbidden

Only owners and admins can test webhooks.

### 404 Not Found

Webhook not found with the provided ID.


## OpenAPI

````yaml POST /organizations/{organizationId}/webhooks/{id}/test
openapi: 3.1.0
info:
  title: Timbrix API
  description: >-
    REST API with OAuth2 server for managing organizations, members, and
    webhooks
  version: '1.0'
  contact: {}
servers:
  - url: http://sandbox.mintlify.com
    description: Sandbox environment
  - url: http://localhost:3001/api
    description: Local development
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /organizations/{organizationId}/webhooks/{id}/test:
    post:
      tags:
        - webhooks
      summary: Send test webhook
      description: >-
        Sends a test webhook event to verify configuration. Useful for testing
        webhook endpoint and HMAC signature verification.
      operationId: WebhooksController_sendTest
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '202':
          description: >-
            Test webhook queued for delivery. Check delivery history to see
            results.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can test webhooks.
        '404':
          description: Webhook not found with the provided ID.
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````