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

# Send a Test Event

> Send a signed sample event and inspect the destination response.

See [Webhooks](https://docs.range.org/risk-api/companies/webhooks.md) for the beta contract and integration details.


## OpenAPI

````yaml api-reference/risk-api-companies.json post /v1/risk/webhook-endpoints/{endpoint_id}/test
openapi: 3.0.3
info:
  title: 'Range Risk API: Company Intelligence and Watchers (Beta)'
  description: >-
    Closed beta contract for Company Intelligence and Watchers. See
    /risk-api/companies/introduction for access and availability.
  version: 0.9.0-beta
  contact: {}
servers:
  - url: https://api.range.org
    description: Range API Server
security:
  - Authorization: []
  - Bearer: []
tags:
  - name: Company Intelligence
    description: >-
      Resolve companies and read sourced facts, dependencies, AI use and event
      history.
  - name: Watches
    description: Monitor companies and receive events when facts change.
  - name: Webhooks
    description: Register endpoints that receive signed watch events.
  - name: Event Catalog
    description: Discover event types, domains and minimum depths.
paths:
  /v1/risk/webhook-endpoints/{endpoint_id}/test:
    post:
      tags:
        - Webhooks
      summary: Send a test event
      description: >-
        Send a signed `event.created` delivery with a sample event to the
        endpoint.
      operationId: testWebhookEndpoint
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: Webhook endpoint ID.
          schema:
            type: string
            format: uuid
          example: 70030f98-22b2-5677-b961-856b93680123
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  delivered:
                    type: boolean
                  response_status:
                    type: integer
                  duration_ms:
                    type: integer
              example:
                delivered: true
                response_status: 200
                duration_ms: 184
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 401
                error: Unauthorized
                message: API key is invalid or not well-formed
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 403
                error: Forbidden
                message: Company Intelligence (beta) is not enabled for this workspace
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 404
                error: Not Found
                message: Webhook endpoint not found
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 429
                error: Too Many Requests
                message: Rate limit exceeded
components:
  schemas:
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        error:
          type: string
          example: Bad Request
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: A string, or an array of strings for validation errors.
      required:
        - statusCode
        - error
        - message
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Authorization method required to allow user to access the api endpoints.
    Bearer:
      type: http
      scheme: bearer
      description: 'Pass the API key as a bearer token (Authorization: Bearer <api-key>).'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.