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

# Send Test Event

> Fire a synthetic event of the given type through the real signing + retry
path. Useful during development for confirming your endpoint can verify
the signature and is reachable from Anchor's egress IPs.

The synthetic delivery counts toward your delivery log so you can see it
in `GET /v1/webhooks/{id}/events`.




## OpenAPI

````yaml /openapi.yaml post /v1/webhooks/{id}/test
openapi: 3.1.0
info:
  title: AnchorBrowser API
  version: 1.0.0
  description: APIs to manage all browser-related actions and configuration.
servers:
  - url: https://api.anchorbrowser.io
    description: API server
security: []
paths:
  /v1/webhooks/{id}/test:
    post:
      tags:
        - Webhooks
      summary: Send Test Event
      description: >
        Fire a synthetic event of the given type through the real signing +
        retry

        path. Useful during development for confirming your endpoint can verify

        the signature and is reachable from Anchor's egress IPs.


        The synthetic delivery counts toward your delivery log so you can see it

        in `GET /v1/webhooks/{id}/events`.
      operationId: sendWebhookTestEvent
      parameters:
        - name: id
          in: path
          required: true
          description: Webhook id.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookTestRequest'
            examples:
              taskCompleted:
                summary: Test a task.completed event
                value:
                  event_type: task.completed
              sessionRecordingReady:
                summary: Test a session.recording.ready event
                value:
                  event_type: session.recording.ready
      responses:
        '202':
          description: Synthetic event accepted and enqueued for delivery.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookTestResponse'
        '400':
          description: Unknown event type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '404':
          description: Webhook not found in this project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '500':
          description: Failed to enqueue test event.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    WebhookTestRequest:
      type: object
      required:
        - event_type
      properties:
        event_type:
          $ref: '#/components/schemas/WebhookEventType'
    WebhookTestResponse:
      type: object
      required:
        - external_event_id
        - event_type
      properties:
        external_event_id:
          type: string
          description: >-
            The synthetic event id that will appear on the receiver as `id` in
            the envelope.
          example: evt_56a4c6e7f11e4b44eafce28a
        event_type:
          $ref: '#/components/schemas/WebhookEventType'
    FlatErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: integer
          description: HTTP status code.
      required:
        - error
    WebhookEventType:
      type: string
      description: |
        Catalog of webhook event types Anchor can deliver. Adding a new event
        type is a coordinated change between session-manager (publisher),
        webhook-dispatcher (consumer), and the dashboard.
      enum:
        - task.completed
        - task.failed
        - task.cancelled
        - task.healed
        - session.completed
        - session.failed
        - session.recording.ready
        - batch.completed
        - batch.failed
        - intervention.requested
        - intervention.resolved
        - identity.authenticated
        - identity.authentication_failed
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````