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

# Read the delivery log

> Newest first. Rows are kept 30 days.



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json get /accounts/integrations/{id}/subscriptions/{sid}/deliveries
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    API for managing accounts, users, authentication, and payments in the
    quiva.ai platform
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Account Management
    description: Operations related to account creation, updating, and deletion
  - name: User Management
    description: Operations related to user creation, updating, and deletion
  - name: Authentication
    description: Operations related to authentication and session management
  - name: API Keys
    description: Operations related to API key management
  - name: Multi-Factor Authentication
    description: Operations related to MFA setup and verification
  - name: Payment
    description: Operations related to subscription and payment management
  - name: Mesh Nodes
    description: Operations related to mesh node management
  - name: Integrations
    description: Machine identities and client credentials for task sync
  - name: Task Subscriptions
    description: Webhook subscriptions that push task events to your endpoint
paths:
  /accounts/integrations/{id}/subscriptions/{sid}/deliveries:
    get:
      tags:
        - Task Subscriptions
      summary: Read the delivery log
      description: Newest first. Rows are kept 30 days.
      parameters:
        - name: id
          in: path
          required: true
          description: Integration id (`I` + 12 hex).
          schema:
            type: string
        - name: sid
          in: path
          required: true
          description: Subscription id.
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          description: '`next_cursor` from the previous page.'
          schema:
            type: string
            pattern: ^[0-9]+$
        - name: limit
          in: query
          required: false
          description: 1 to 200. Default 50.
          schema:
            type: integer
            minimum: 1
            maximum: 200
      responses:
        '200':
          description: A page.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DeliveryPage'
                required:
                  - data
        '400':
          description: Bad request. `code` names the cause.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationError'
        '401':
          description: >-
            Not authenticated, the caller is not a root or admin user, or the
            integration token was revoked (`token_revoked`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationError'
        '403':
          description: >-
            Forbidden: `scope_denied`, or `integration_not_allowed` for an
            integration bearer outside workspaces.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationError'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationError'
        '503':
          description: >-
            A backing store is unreachable. Retry. `code` is
            `storage_unavailable`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationError'
components:
  schemas:
    DeliveryPage:
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: '#/components/schemas/TaskDelivery'
        next_cursor:
          type: string
          description: Empty when there is no next page.
        has_more:
          type: boolean
      required:
        - deliveries
        - next_cursor
        - has_more
    IntegrationError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
    TaskDelivery:
      type: object
      properties:
        stream_seq:
          type: integer
          description: 0 is the latest test event.
        event_id:
          type: string
        event_type:
          type: string
        status:
          type: string
          enum:
            - sending
            - delivered
            - retrying
            - failed
        attempts:
          type: integer
        last_status_code:
          type: integer
        latency_ms:
          type: integer
        response_excerpt:
          type: string
          maxLength: 512
        delivered_at:
          type: string
        last_error:
          type: string
        updated_at:
          type: string
      required:
        - stream_seq
        - event_id
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````

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