> ## 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.

# Replay events or send a test event

> Queued in the background; read the outcome in the delivery log. Replay covers `from < sequence <= to`, ignores delivered markers, keeps kind and echo filters, and is capped at 10 000 events. A paused subscription refuses replay (`409 subscription_paused`) but accepts a test.



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json post /accounts/integrations/{id}/subscriptions/{sid}/replay
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}/replay:
    post:
      tags:
        - Task Subscriptions
      summary: Replay events or send a test event
      description: >-
        Queued in the background; read the outcome in the delivery log. Replay
        covers `from < sequence <= to`, ignores delivered markers, keeps kind
        and echo filters, and is capped at 10 000 events. A paused subscription
        refuses replay (`409 subscription_paused`) but accepts a test.
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplayRequest'
      responses:
        '202':
          description: Accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ReplayAccepted'
                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'
        '409':
          description: Conflict. `code` names the cause.
          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:
    ReplayRequest:
      type: object
      properties:
        from_cursor:
          oneOf:
            - type: string
              pattern: ^[0-9]+$
            - type: integer
              minimum: 0
          description: Exclusive start. Required unless `test` is true.
        to_cursor:
          oneOf:
            - type: string
              pattern: ^[0-9]+$
            - type: integer
              minimum: 0
          description: >-
            Inclusive end. Omit or 0 for the end of the stream. Must be greater
            than `from_cursor`.
        test:
          type: boolean
          description: >-
            Send a synthetic `test` event instead. Works on a paused
            subscription.
    ReplayAccepted:
      type: object
      properties:
        request_id:
          type: string
        type:
          type: string
          enum:
            - replay
            - test
      required:
        - request_id
        - type
    IntegrationError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
  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.