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

# Obtener un evento

Un evento por su id (`evnt_…`), con la misma forma que en
[el listado](https://docs.tupana.ai/api-reference/v2/events/list.md). Un evento de una empresa que no
es de tu integración, o de otro ambiente, responde `404`.

```bash theme={null}
curl https://api.tupana.ai/v2/events/evnt_8102938475612001/ \
  -H "Authorization: Api-Key TU_API_KEY"
```


## OpenAPI

````yaml api-reference/openapi-v2.json GET /events/{event_id}/
openapi: 3.0.0
info:
  title: Tupana API — v2
  description: >-
    API v2 de Tupana: facturación electrónica, cesiones, recaudación, consultas,
    boleta de honorarios y nómina. Los identificadores de recursos son public
    IDs opacos con prefijo (docu_, ment_, cred_, doce_, empl_…).
  version: 2.0.0
servers:
  - url: https://api.tupana.ai/v2
    description: Producción (v2)
security:
  - apiKeyAuth: []
paths:
  /events/{event_id}/:
    get:
      tags:
        - Eventos
      summary: Obtener un evento
      operationId: getEvent_v2
      parameters:
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            example: evnt_8102938475612001
      responses:
        '200':
          description: Evento
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEvent'
        '403':
          description: >-
            La API key no tiene `banking:read` explícito (`code:
            banking_permission_required`)
        '404':
          description: El evento no existe para esta API key
      security:
        - apiKeyAuth: []
components:
  schemas:
    ApiEvent:
      type: object
      properties:
        id:
          type: string
          example: evnt_8102938475612001
        type:
          type: string
          enum:
            - bank_account.refreshed
            - bank_account.refresh_failed
            - movement.created
            - movement.updated
            - connection.degraded
            - connection.active
            - connection.requires_action
        api_version:
          type: integer
          example: 2
        created_at:
          type: string
          format: date-time
        company_id:
          type: string
          example: ment_3672486436546233854
        resource_type:
          type: string
          example: bank_account
        resource_id:
          type: string
          example: bacc_7Hk2938475610293
        data:
          type: object
          description: El mismo `data` del webhook.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API Key para autenticación. Debe proporcionarse en el header
        Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo
        'Api-Key ' seguido de tu API key)

````

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