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

# Check Export Status

> Returns the state of an export started with `GET /v1/agent-analytics/conversations/export`, using its `exportId`. Poll until `status` is `ready`, then download the file from `downloadUrl`. Unlike most routes, this one needs `projectId` in the query.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agent-analytics/conversations/export/status
openapi: 3.0.1
info:
  title: Hamsa API
  description: >-
    The Hamsa API: voice agents and their calls, phone numbers, batch calls and
    knowledge bases; speech to text, text to speech, voices and AI content.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tryhamsa.com
security: []
paths:
  /v1/agent-analytics/conversations/export/status:
    get:
      summary: Check a conversations export
      description: >-
        Returns the state of an export started with `GET
        /v1/agent-analytics/conversations/export`, using its `exportId`. Poll
        until `status` is `ready`, then download the file from `downloadUrl`.
        Unlike most routes, this one needs `projectId` in the query.
      parameters:
        - in: query
          name: projectId
          required: true
          description: Your project ID (required in the query for this route).
          schema:
            type: string
            format: uuid
            example: fbb9e8b2-2dbb-40f9-a051-9404624e3247
        - in: query
          name: exportId
          required: true
          description: The `exportId` the export request returned.
          schema:
            type: string
            format: uuid
            example: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: success
                  data:
                    $ref: '#/components/schemas/ConversationExportStatus'
              examples:
                ready:
                  summary: Ready
                  value:
                    success: true
                    message: success
                    data:
                      exportId: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                      status: ready
                      downloadUrl: >-
                        https://d15zjcysdf8w17.cloudfront.net/exports/conversations-6f1c2a3b.xlsx?Expires=1762214400&Key-Pair-Id=K2983LOILPPCUR&Signature=abc123
                      expiresAt: '2026-11-03T10:05:00.000Z'
                pending:
                  summary: Queued
                  value:
                    success: true
                    message: success
                    data:
                      exportId: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                      status: pending
                      requestedAt: '2026-11-02T10:00:00.000Z'
                processing:
                  summary: Being built
                  value:
                    success: true
                    message: success
                    data:
                      exportId: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                      status: processing
                      requestedAt: '2026-11-02T10:00:00.000Z'
                      attemptsMade: 1
                failed:
                  summary: Failed
                  value:
                    success: true
                    message: success
                    data:
                      exportId: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                      status: failed
                      error: Export failed. Please try again.
                expired:
                  summary: Expired or unknown
                  value:
                    success: true
                    message: success
                    data:
                      exportId: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                      status: expired
        '400':
          description: Missing or invalid `projectId` or `exportId`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '401':
          description: 'Unauthorized: missing or invalid API key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '403':
          description: >-
            The key's owner may not export call history, or a scoped API key
            lacks the `call_history:export` scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '500':
          description: Server Side Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ConversationExportStatus:
      type: object
      required:
        - exportId
        - status
      properties:
        exportId:
          type: string
          format: uuid
          example: 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
        status:
          type: string
          enum:
            - pending
            - processing
            - ready
            - failed
            - expired
          description: >-
            `pending`: queued. `processing`: being built (or retried after an
            error). `ready`: download it from `downloadUrl`. `failed`: gave up,
            start a new export. `expired`: unknown export ID, another project's,
            or too old.
          example: ready
        requestedAt:
          type: string
          format: date-time
          description: When the export was requested (`pending`, `processing`).
          example: '2026-11-02T10:00:00.000Z'
        attemptsMade:
          type: integer
          description: Attempts so far (`processing`).
          example: 1
        downloadUrl:
          type: string
          format: uri
          description: >-
            Signed link to the XLSX file (`ready`). A new link is signed on each
            request.
          example: >-
            https://d15zjcysdf8w17.cloudfront.net/exports/conversations-6f1c2a3b.xlsx?Expires=1762214400&Key-Pair-Id=K2983LOILPPCUR&Signature=abc123
        expiresAt:
          type: string
          format: date-time
          description: When `downloadUrl` stops working (`ready`).
          example: '2026-11-03T10:05:00.000Z'
        error:
          type: string
          description: Why it failed (`failed`).
          example: Export failed. Please try again.
    ErrorSchema:
      type: object
      properties:
        code:
          type: integer
          description: >-
            Service error code: the HTTP status with a service prefix (for
            example `8404`). Missing when the service has no code for that
            status.
          example: 8404
        message:
          type: string
          description: >-
            What went wrong. Some services (calls and recordings) put the error
            key here, for example `CallNotFoundOrUnavailable`, and send no
            `messageKey`.
          example: Policy not found!
        messageKey:
          type: string
          description: >-
            Stable key for the error, safe to match on in code. Not returned by
            every service.
          example: PolicyNotFound
        params:
          type: object
          additionalProperties: true
          description: >-
            Details for some errors (for example `reason`). Not returned by
            every service.
          example:
            reason: NO_DRAFT
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Pass the API key in the Authorization header, You need to put Token
        keyword before the API key. e.g. 'Authorization: Token <api-key>'

````

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