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

# Get an export job

> Returns the current state of an export job. Only the identity that created the job can read it; other callers get 404.



## OpenAPI

````yaml GET /task/export-job/{id}
openapi: 3.0.1
info:
  title: Tela API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tela.com
security: []
paths:
  /task/export-job/{id}:
    get:
      tags:
        - Task
      summary: Get an export job
      description: >-
        Returns the current state of an export job. Only the identity that
        created the job can read it; other callers get 404.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Export job state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskExportJob'
              example:
                id: 0d5a5f3e-2c1b-4e9a-8f7d-6a5b4c3d2e10
                status: completed
                totalTasks: 142
                processedTasks: 142
                hasFile: true
                createdAt: '2025-01-15T12:00:00.000Z'
                completedAt: '2025-01-15T12:01:30.000Z'
                expiresAt: '2025-01-16T12:01:30.000Z'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Export job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TaskExportJob:
      type: object
      title: Export job
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          description: >-
            `pending` → `processing` → `completed` | `failed`. `expired` once
            the file has been cleaned up.
          enum:
            - pending
            - processing
            - completed
            - failed
            - expired
        totalTasks:
          type: integer
          description: Number of tasks matched at creation time. Omitted when unknown.
        processedTasks:
          type: integer
        hasFile:
          type: boolean
          description: Whether an export file has been generated.
        errorMessage:
          type: string
          description: Present when `status` is `failed`.
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
          description: >-
            When the generated file stops being downloadable (24 hours after
            completion).
      required:
        - id
        - status
        - processedTasks
        - hasFile
        - createdAt
    Error: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or UUID

````

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