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

# Stream upload status

> Follow the progress of a contact list upload over server-sent events.



## OpenAPI

````yaml api-reference/campaign-audience/openapi.json GET /v1/calls/contact-lists/{id}/uploads/{uploadID}/events
openapi: 3.0.3
info:
  title: Persistence Campaign Audience API
  version: '1.0'
  description: Manage the contact lists that define who a campaign calls.
servers:
  - url: https://api.persistence.dev
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Campaign audience
    description: Contact list management and CSV upload.
paths:
  /v1/calls/contact-lists/{id}/uploads/{uploadID}/events:
    get:
      tags:
        - Campaign audience
      summary: Stream contact list upload status (SSE)
      description: >-
        Stream upload progress as server-sent events. Each event reports the
        current upload status and row counts.
      operationId: streamUploadStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Contact list ID
        - name: uploadID
          in: path
          required: true
          schema:
            type: string
          description: Upload ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadStatusEvent'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UploadStatusEvent:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Upload'
        errorReportUrl:
          type: string
        eventId:
          type: string
        eventType:
          type: string
    Error:
      type: object
      properties:
        code:
          type: string
        error:
          type: string
    Upload:
      type: object
      properties:
        errorReportS3Key:
          type: string
        errorReportUrl:
          type: string
        errors:
          type: array
          items:
            type: integer
        id:
          type: string
        metadata:
          $ref: '#/components/schemas/UploadMetadata'
        processedAt:
          type: string
        s3Key:
          type: string
        status:
          $ref: '#/components/schemas/UploadStatus'
        uploadedAt:
          type: string
        validatedAt:
          type: string
    UploadMetadata:
      type: object
      properties:
        duplicateRows:
          type: integer
        importedRows:
          type: integer
        invalidRows:
          type: integer
        totalRows:
          type: integer
        validRows:
          type: integer
    UploadStatus:
      type: string
      enum:
        - uploaded
        - validating
        - validation_failed
        - validated
        - processing
        - processed
        - failed
      x-enum-varnames:
        - UploadStatusUploaded
        - UploadStatusValidating
        - UploadStatusValidationFailed
        - UploadStatusValidated
        - UploadStatusProcessing
        - UploadStatusProcessed
        - UploadStatusFailed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key issued for your workspace.

````