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

# Consultar endpoint de webhook

> Un endpoint por id (wep_…). El secreto solo aparece en la creación y en el cambio de secreto.



## OpenAPI

````yaml /openapi.es.json get /v1/webhook-endpoints/{endpoint_id}
openapi: 3.1.0
info:
  title: API de Bevits
  version: 1.0.0
  description: >-
    API pública de Bevits para consultar y gestionar datos de CRM, clientes,
    compras, segmentos, etiquetas, automatizaciones, recetas, campañas,
    plantillas de email, identidad de marca, eventos personalizados y webhooks.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.bevits.com
    description: Producción
security:
  - bearerAuth: []
tags:
  - name: Sistema
    description: Disponibilidad de la API.
  - name: Identidad
    description: Identidad de la organización y de la clave API.
  - name: Clientes
    description: Clientes y sus relaciones.
  - name: Segmentos
    description: Segmentos de clientes.
  - name: Compras
    description: >-
      Compras de las integraciones de tienda y compras creadas por la API por
      quienes venden con su propio sistema.
  - name: Datos del CRM
    description: Etiquetas y definiciones de atributos.
  - name: Automatizaciones
    description: Flows de automatización.
  - name: Campañas
    description: Campañas de email, WhatsApp y SMS.
  - name: Cuenta y marca
    description: Contexto de la cuenta, identidad de marca e imágenes.
  - name: Recetas
    description: Automatizaciones listas creadas a partir de recetas, con deshacer.
  - name: Plantillas de email
    description: Creación e importación de plantillas de email.
  - name: Eventos
    description: Eventos personalizados enviados por la tienda y sus tipos.
  - name: Webhooks
    description: Endpoints que reciben los eventos de la tienda y el registro de entregas.
paths:
  /v1/webhook-endpoints/{endpoint_id}:
    get:
      tags:
        - Webhooks
      summary: Consultar endpoint de webhook
      description: >-
        Un endpoint por id (wep_…). El secreto solo aparece en la creación y en
        el cambio de secreto.
      operationId: getWebhookEndpoint
      parameters:
        - $ref: '#/components/parameters/WebhookEndpointId'
      responses:
        '200':
          $ref: '#/components/responses/WebhookEndpoint'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/ReadScopeRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    WebhookEndpointId:
      name: endpoint_id
      in: path
      description: ID del endpoint (wep_…).
      schema:
        type: string
        pattern: ^wep_[A-Za-z0-9_-]+$
      required: true
  responses:
    WebhookEndpoint:
      description: El endpoint.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WebhookEndpoint'
          example:
            object: webhook_endpoint
            id: wep_0mgc2k1a7000a1b2c3d4e5f6g7
            url: https://api.example.com/webhooks/bevits
            description: ERP
            events:
              - email.clicked
              - contact.unsubscribed
            status: enabled
            disabled_reason: null
            api_version: '2026-11-23'
            livemode: true
            failing_since: null
            last_success_at: '2026-11-23T14:03:02.000Z'
            previous_secret_expires_at: null
            created_at: '2026-11-23T12:00:00.000Z'
            updated_at: '2026-11-23T12:00:00.000Z'
    InvalidRequest:
      description: Parámetro de ruta inválido.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Clave API ausente, inválida, expirada o revocada.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: authentication_error
              message: Invalid API key.
              request_id: req_07f6cdc3c20249d6afcd90b4
    ReadScopeRequired:
      description: >-
        La clave API no tiene el alcance read. Es el caso de una clave solo de
        envío, creada únicamente con events:write.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: permission_denied
              code: missing_scope
              message: This API key does not have the required "read" scope.
              param: scope
              request_id: req_07f6cdc3c20249d6afcd90b4
    NotFound:
      description: El recurso no existe o pertenece a otra organización.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Límite de solicitudes superado.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitErrorResponse'
    InternalError:
      description: Error inesperado en el servidor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    WebhookEndpoint:
      type: object
      properties:
        object:
          type: string
          enum:
            - webhook_endpoint
        id:
          type: string
        url:
          type: string
        description:
          type:
            - string
            - 'null'
        events:
          type: array
          items:
            type: string
          description: Tipos suscritos, o ["*"] para todos.
        status:
          type: string
          enum:
            - enabled
            - disabled
        disabled_reason:
          type:
            - string
            - 'null'
          enum:
            - manual
            - failing
            - null
          description: 'failing: desactivado tras 5 días de fallos.'
        api_version:
          type: string
        livemode:
          type: boolean
        failing_since:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Cuándo empezó la racha actual de fallos; null si el endpoint está
            sano.
        last_success_at:
          type:
            - string
            - 'null'
          format: date-time
        previous_secret_expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Hasta cuándo el secreto anterior sigue firmando, tras un cambio.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - object
        - id
        - url
        - description
        - events
        - status
        - disabled_reason
        - api_version
        - livemode
        - failing_since
        - last_success_at
        - previous_secret_expires_at
        - created_at
        - updated_at
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    RateLimitErrorResponse:
      allOf:
        - $ref: '#/components/schemas/ErrorResponse'
        - type: object
          required:
            - retry_after
          properties:
            retry_after:
              type: integer
              minimum: 1
              description: Segundos antes de volver a intentarlo.
    Error:
      type: object
      required:
        - type
        - message
        - request_id
      properties:
        type:
          type: string
          enum:
            - authentication_error
            - conflict
            - internal_error
            - invalid_request
            - not_found
            - permission_denied
            - rate_limited
            - service_unavailable
            - validation_error
        code:
          type: string
          description: >-
            Motivo estable y legible por máquina dentro de type, como
            invalid_event_name. Presente cuando el error tiene un motivo con
            nombre.
        message:
          type: string
        param:
          type: string
          description: >-
            Ruta completa del campo con problema, como customer.email o
            events[3].name.
        suggestion:
          type: string
          description: Un valor que sería aceptado, cuando existe uno obvio.
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
  headers:
    RetryAfter:
      description: Segundos antes de volver a intentarlo.
      schema:
        type: integer
        minimum: 1
    RateLimitLimit:
      description: Límite total de la ventana actual.
      schema:
        type: integer
        example: 600
    RateLimitRemaining:
      description: Solicitudes restantes en la ventana actual.
      schema:
        type: integer
        example: 599
    RateLimitReset:
      description: Instante UTC en que termina la ventana actual.
      schema:
        type: string
        format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: bvt_live_...
      description: Clave API creada en la configuración de la organización.

````

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