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

# Get bulk export status

> Poll GET /dn/jobs/export/status/{id} to check whether an async bulk export is completed and to obtain a time-limited signed download URL.

After you queue a bulk export with [Bulk export](/api-reference/jobs/bulk-export), poll this endpoint using the `id` from the returned `status_url`. When the export finishes, the response includes a signed `download_url` that you can use to fetch the generated file.

## Polling

* Poll every 5 to 10 seconds. Small exports usually finish within seconds, but large ones can take a few minutes.
* Stop polling as soon as `status` is `"completed"`, then download the file from `download_url`.
* Set an overall timeout in your integration (for example, 10 minutes). If the export still shows `"processing"` after that, stop polling and contact Detrack support with the export `id`.

## Related endpoints

* [Bulk export](/api-reference/jobs/bulk-export) to queue a new export
* [Download document](/api-reference/jobs/export) to retrieve a single job document directly


## OpenAPI

````yaml GET /dn/jobs/export/status/{id}
openapi: 3.0.3
info:
  title: Detrack REST API v2
  version: '2.0'
  description: >-
    Detrack REST API v2. Checked against detrack-webapp origin/main (production)
    on 2026-09-29: dn_jobs.rb @ d246ad006, dn_depots.rb @ 2a5f387, dn_routes.rb
    @ 50a73a9, app_helper.rb @ d745ad2, dn_jobs_helper.rb @ d296e30,
    job_decorator.rb @ 3041da7, run_location_decorator.rb @ 0f0274d,
    vehicle_route_plan_decorator.rb and tsp_route_decorator.rb @ 7d1f3ef,
    data_export.rb @ ed4e135.
servers:
  - url: https://app.detrack.com/api/v2
security:
  - apiKey: []
tags:
  - name: Jobs
    description: Deliveries and collections.
  - name: Depots
    description: Saved warehouse and pickup locations.
  - name: Routes
    description: Optimized multi-stop plans across vehicles.
paths:
  /dn/jobs/export/status/{id}:
    get:
      tags:
        - Jobs
      summary: Get bulk export status
      description: >-
        Returns `processing` until the export is ready, then `completed` with a
        signed `download_url` that expires after about 15 minutes. Each call
        returns a freshly signed URL. Poll every 5 to 10 seconds.
      operationId: getExportStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: 5b22033310c92b1a086ece03
          description: Export ID, the last part of `status_url`.
      responses:
        '200':
          description: Export status. The body isn't wrapped in `data`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - processing
                      - completed
                    example: completed
                  download_url:
                    type: string
                    nullable: true
                    example: >-
                      https://exports.example.com/shipping-labels.pdf?signature=EXAMPLE_SIGNATURE
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: No export has this ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: not_found
                message: Could not find an export with this id
        default:
          $ref: '#/components/responses/ServerError'
components:
  responses:
    Unauthorized:
      description: >-
        The API key is missing or invalid. A missing `X-API-KEY` returns `{
        "error": "Missing Authorization header" }`; an invalid key returns `{
        "code": "invalid_key", "message": "Invalid key" }`.
      content:
        application/json:
          schema:
            oneOf:
              - type: object
                title: Missing key
                required:
                  - error
                properties:
                  error:
                    type: string
                    example: Missing Authorization header
              - type: object
                title: Invalid key
                required:
                  - code
                properties:
                  code:
                    type: string
                    example: invalid_key
                  message:
                    type: string
                    example: Invalid key
          example:
            code: invalid_key
            message: Invalid key
    Forbidden:
      description: Your API key's user doesn't have permission for this action.
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: forbidden
          example:
            code: forbidden
    ServerError:
      description: >-
        Unexpected server error. Retry with exponential backoff, and contact
        Detrack support if it persists.
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
          example: not_found
        message:
          type: string
          example: Could not find job with this DO number
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Detrack API key, from **Integrations > API Key** in the dashboard.

````

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