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

# List events

> Lists the events of the project in ascending `sequence` order, oldest first. This is the **reconciliation** path when you miss webhook deliveries: store the `id` of the last event you processed and pass it in `after`.

Events are available for 90 days. See [Reconcile events](/en/webhooks/reconciliation).

Each event carries the `external_ref` of the project, which is `null` when the project has none.



## OpenAPI

````yaml en/openapi.json GET /v1/events
openapi: 3.0.3
info:
  title: Routa API
  description: >-
    REST API to send and receive WhatsApp messages, track delivery and receive
    normalized events through webhooks.
  version: '1'
servers:
  - url: https://api.routa.chat
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Messages
    description: Send, retrieve and list messages.
  - name: Events
    description: Query the log of normalized events.
  - name: Webhooks
    description: Manage webhook endpoints, secrets and deliveries.
  - name: Templates
    description: Create and retrieve WhatsApp templates.
  - name: Media
    description: Upload and download media files.
  - name: Usage
    description: Query the metered usage of the project.
  - name: Identity
    description: Identify the API key in use.
  - name: Partners
    description: >-
      Create one project per customer, issue the key of each project, follow the
      channels and receive the events of every customer on a single webhook.
      These routes use a partner key (`rt_partner_...`). See [Partner
      API](/en/partners/overview).
paths:
  /v1/events:
    get:
      tags:
        - Events
      summary: List events
      description: >-
        Lists the events of the project in ascending `sequence` order, oldest
        first. This is the **reconciliation** path when you miss webhook
        deliveries: store the `id` of the last event you processed and pass it
        in `after`.


        Events are available for 90 days. See [Reconcile
        events](/en/webhooks/reconciliation).


        Each event carries the `external_ref` of the project, which is `null`
        when the project has none.
      operationId: listEvents
      parameters:
        - schema:
            type: string
            enum:
              - message.accepted
              - message.sent
              - message.delivered
              - message.read
              - message.failed
              - message.received
              - channel.status_changed
              - template.submitted
              - template.pending
              - template.approved
              - template.rejected
              - template.paused
              - template.disabled
              - template.failed
              - template.category_changed
              - template.updated
              - template.deleted
          in: query
          name: type
          required: false
          description: >-
            Filters by event type, for example `message.delivered` or
            `template.deleted`.
        - description: Resumes the listing after this event ID (`evt_...`).
          schema:
            type: string
          in: query
          name: after
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          in: query
          name: limit
          required: false
          description: Number of items per page, from 1 to 100. The default is 20.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventList'
        '401':
          description: >-
            The API key is missing, invalid, revoked or expired
            (`api_key_invalid`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key lacks the required scope (`insufficient_scope`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The resource does not exist or belongs to another project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded. See the `Retry-After` header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth:
            - events:read
components:
  schemas:
    EventList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Event'
          description: Events on this page.
        has_more:
          type: boolean
          description: Whether there are more events.
        next_cursor:
          type: string
          nullable: true
          description: >-
            ID of the last event on the page, or `null` on the last one. Use it
            in `after`.
      required:
        - data
        - has_more
        - next_cursor
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              description: >-
                Error category: `invalid_request_error`, `authentication_error`,
                `permission_error`, `not_found_error`, `conflict_error`,
                `rate_limit_error`, `billing_error` or `api_error`.
              example: invalid_request_error
            code:
              type: string
              description: >-
                Stable, machine-readable code. See [Error
                codes](/en/errors/error-codes).
              example: channel_inactive
            message:
              type: string
              description: >-
                Human-readable text, in English. It can change, so do not parse
                it.
              example: Channel chan_01J8... is not active and cannot send messages.
            param:
              type: string
              description: >-
                The request field at fault, when it applies. It is filled in on
                `request_invalid` (the field outside the schema, such as
                `template.button_parameters.0.index`) and on template errors:
                `name` in `template_name_invalid`; `body_text`,
                `components.header`, `components.footer` or `components.buttons`
                in `template_components_invalid`; and `variable_examples`,
                `variable_examples.<position>`, `components.header.example` or
                `components.buttons.<position>.example` when
                `template_variables_invalid` refuses an example.
              example: components.buttons.0.example
            doc_url:
              type: string
              description: Link to the documentation of the code, when available.
            details:
              type: object
              additionalProperties:
                oneOf:
                  - type: string
                  - type: number
              description: >-
                Actionable values, such as `limit`, `used` and `resets_at` in
                `message_quota_exceeded`, or `reason`, which tells apart the
                causes behind one code, in errors such as `invalid_recipient`
                and `template_variables_invalid`. See [Actionable
                details](/en/errors/overview#actionable-details).
            request_id:
              type: string
              description: Request ID. Quote it when you contact support.
              example: req_01J8ZK9M3Q7XABCDEFGHJKMNPQ
          description: Error details.
      required:
        - error
    Event:
      type: object
      required:
        - id
        - type
        - api_version
        - schema_version
        - project_id
        - external_ref
        - sequence
        - occurred_at
        - recorded_at
        - data
      properties:
        id:
          type: string
          description: Event ID. This is the deduplication key.
          example: evt_01J8ZK9M3Q7XABCDEFGHJKMNPQ
        type:
          type: string
          enum:
            - message.accepted
            - message.sent
            - message.delivered
            - message.read
            - message.failed
            - message.received
            - channel.status_changed
            - template.submitted
            - template.pending
            - template.approved
            - template.rejected
            - template.paused
            - template.disabled
            - template.failed
            - template.category_changed
            - template.updated
            - template.deleted
          description: Event type, in the format `resource.past_tense_action`.
        api_version:
          type: string
          description: Version of the public format of the resource in `data`.
          example: v1
        schema_version:
          type: number
          description: Version of the event envelope.
          example: 1
        project_id:
          type: string
          description: Project that owns the event.
          example: proj_01J8ZK9M3Q7XABCDEFGHJKMNPQ
        external_ref:
          type: string
          nullable: true
          description: >-
            The `external_ref` of the project (the customer's ID on the partner
            platform), or `null` on a project that has none. Set once and never
            changes.
          example: null
        sequence:
          type: number
          description: >-
            Monotonic number, useful to detect gaps. It is not a promise of
            delivery order.
        occurred_at:
          format: date-time
          type: string
          description: When the fact happened.
          example: '2026-09-04T13:22:41.031Z'
        recorded_at:
          format: date-time
          type: string
          description: When Routa recorded the event.
          example: '2026-09-04T13:22:41.031Z'
        data:
          description: >-
            The full resource in its current state, not a diff. For message
            events it is the message; for template events, the template.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Project API key, in the format `rt_live_...` or `rt_test_...`, sent as
        `Authorization: Bearer <key>`.

````

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