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

# Enviar uma entrega de teste

> Uma entrega assinada e marcada como teste para um endpoint ou um fluxo de SIEM.



## OpenAPI

````yaml openapi/pt/cell.json POST /v1/webhooks/endpoints/{endpoint_id}/test
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/webhooks/endpoints/{endpoint_id}/test:
    post:
      tags:
        - operate
      summary: Enviar uma entrega de teste
      description: >-
        Manda uma entrega marcada como teste, do tipo `webhook.test`, para
        conferir um endpoint ou um fluxo de SIEM antes de depender dele. O
        endpoint recebe o envelope de sempre com `data: {"test": true}`,
        qualquer que seja a lista de tipos que ele assina; o fluxo de SIEM
        recebe um evento OCSF de atividade de API com `unmapped.niadra.test`,
        fora da cadeia de comprovantes. A entrega é assinada como as outras, sai
        uma vez só, sem novas tentativas, e aparece na lista de entregas.
        Endpoint desligado responde 409.


        **Autenticação.** Token de pessoa do Console com o papel `integration`
        (ou admin), ou chave de fonte com o escopo `admin`.
      operationId: test_endpoint_v1_webhooks_endpoints__endpoint_id__test_post
      parameters:
        - in: path
          name: endpoint_id
          required: true
          schema:
            maxLength: 128
            title: Endpoint Id
            type: string
          description: >-
            O `endpoint_id` do endpoint ou do fluxo de SIEM, como está em
            `webhook-endpoints`.
          example: whe_crm
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeliveryView'
              example:
                delivery_id: 0192f8d4-1a2b-7c3d-8e4f-5a6b7c8d9e0f
                endpoint_id: whe_crm
                event_type: webhook.test
                status: pending
                attempts: 0
                last_status_code: null
                last_error: null
                created_at: '2026-09-24T12:00:00Z'
                delivered_at: null
                next_attempt_at: null
          description: >-
            A entrega de teste está na fila; acompanhe em `GET
            /v1/webhooks/deliveries`.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    DeliveryView:
      additionalProperties: false
      properties:
        attempts:
          title: Attempts
          type: integer
        created_at:
          format: date-time
          title: Created At
          type: string
        delivered_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Delivered At
        delivery_id:
          title: Delivery Id
          type: string
        endpoint_id:
          title: Endpoint Id
          type: string
        event_type:
          title: Event Type
          type: string
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
        last_status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Status Code
        next_attempt_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Next Attempt At
        status:
          title: Status
          type: string
      required:
        - delivery_id
        - endpoint_id
        - event_type
        - status
        - attempts
        - created_at
      title: DeliveryView
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````