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

# Test Alert Webhook

> Sends a simulated webhook notification using data from the alert. Uses real campground and campsite data when available. This endpoint is intended for testing only. By default, the test notification is not saved. Set save=true to persist it to the alert's notification history.

<Warning>This endpoint is for testing only.</Warning>

Sends a simulated webhook notification for an existing alert, using real campground and campsite data when available. Useful for verifying your webhook setup before waiting for a real match.

By default the notification is not saved. Pass `save=true` to persist it to the alert's notification history.

```
POST /alert/:id/test
POST /alert/:id/test?save=true
```


## OpenAPI

````yaml POST /alert/:id/test
openapi: 3.0.1
info:
  title: OpenAPI Plant Store
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  version: 1.0.0
servers:
  - url: https://api.campflare.com/v2
security: []
paths:
  /alert/:id/test:
    post:
      summary: Send a test webhook notification for an alert
      description: >-
        Sends a simulated webhook notification using data from the alert. Uses
        real campground and campsite data when available. This endpoint is
        intended for testing only. By default, the test notification is not
        saved. Set save=true to persist it to the alert's notification history.
      parameters:
        - name: save
          in: query
          description: >-
            Whether to save the test notification to the alert's notification
            history. Defaults to false.
          required: false
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Test result
          content:
            application/json:
              schema:
                type: object
                required:
                  - webhook_status
                properties:
                  webhook_status:
                    type: string
                    enum:
                      - delivered
                      - error
                      - no-webhook
                      - missing-jwt-secret-key
                    description: The result of the webhook delivery attempt
                  webhook_http_response_code:
                    type: string
                    description: The HTTP status code returned by your webhook endpoint
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            kind:
              type: string

````