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

# Upload a replay chunk



## OpenAPI

````yaml https://api.interfere.com/openapi.json post /v3/replay/upload/{sessionId}
openapi: 3.0.0
info:
  title: Interfere API
  termsOfService: https://interfere.com/legal/terms-of-service
  contact:
    email: support@interfere.com
    name: Interfere Support
    url: https://interfere.com/~/*/settings/support
  license:
    name: All Rights Reserved
  description: >-
    Interfere empowers engineers, product managers and designers with real-time
    understanding of previously unseen bugs and issues.
  version: 3.0.0
servers:
  - url: https://api.interfere.com
    description: This environment
security: []
tags:
  - name: Drain
    description: Drain API
  - name: Releases
    description: Build-time release API
  - name: Replay
    description: Session replay chunk ingest API
  - name: Sessions
    description: Session and end-user identity API
  - name: Updates
    description: Desktop app update API
  - name: Traces
    description: Trace waterfall read API
externalDocs:
  url: https://interfere.com/docs
  description: Interfere Documentation
paths:
  /v3/replay/upload/{sessionId}:
    post:
      tags:
        - Replay
      summary: Upload a replay chunk
      operationId: uploadReplayChunk
      parameters:
        - schema:
            type: string
            description: Session the chunk belongs to
            example: 01991111-1111-7111-8111-111111111111
          required: true
          description: Session the chunk belongs to
          name: sessionId
          in: path
        - schema:
            type: string
            description: >-
              Base64-encoded JSON chunk metadata (windowId, segmentId, firstTs,
              lastTs, eventCount, hasFullSnapshot, activityCount)
          required: false
          description: >-
            Base64-encoded JSON chunk metadata (windowId, segmentId, firstTs,
            lastTs, eventCount, hasFullSnapshot, activityCount)
          name: x-replay-meta
          in: header
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              nullable: true
              description: >-
                Newline-delimited JSON (JSONL) of rrweb events, optionally
                gzip-compressed (Content-Encoding: gzip)
      responses:
        '200':
          description: Chunk stored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplayUploadChunkResponse'
        '401':
          description: Missing or invalid public key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthProblem'
        '413':
          description: The uploaded chunk exceeds the per-chunk size limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplayUploadRejectedProblem'
        '503':
          description: >-
            A dependency failed while accepting the chunk; retry with backoff
            after the Retry-After delay
          headers:
            Retry-After:
              schema:
                type: string
                description: Seconds to wait before retrying
              required: true
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplayUnavailableProblem'
      security:
        - publicKeyHeader: []
        - publicKey: []
components:
  schemas:
    ReplayUploadChunkResponse:
      type: object
      properties:
        objectKey:
          type: string
          description: >-
            R2 key the chunk was stored under; empty when the chunk carried no
            usable metadata
      required:
        - objectKey
    AuthProblem:
      type: object
      properties:
        code:
          type: string
          enum:
            - AUTH_MISSING
            - AUTH_PK_INVALID
        message:
          type: string
        service:
          type: string
          enum:
            - collector
            - gateway
            - operation
            - intelligence
      required:
        - code
    ReplayUploadRejectedProblem:
      type: object
      properties:
        code:
          type: string
          enum:
            - REPLAY_UPLOAD_REJECTED
        message:
          type: string
        service:
          type: string
          enum:
            - collector
            - gateway
            - operation
            - intelligence
      required:
        - code
    ReplayUnavailableProblem:
      type: object
      properties:
        code:
          type: string
          enum:
            - INGEST_INFRA_UNAVAILABLE
        message:
          type: string
        service:
          type: string
          enum:
            - collector
            - gateway
            - operation
            - intelligence
      required:
        - code
  securitySchemes:
    publicKeyHeader:
      type: apiKey
      in: header
      name: x-interfere-public-key
      description: >-
        Public key of the receiving surface; preferred for OTel Collector
        exporters, whose endpoint config cannot carry query strings
    publicKey:
      type: apiKey
      in: query
      name: public_key
      description: Public key of the receiving surface

````