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

# Trigger a job export

> Start an export for a job using a supported `exportType` (`csv` or `katapult`). Returns an `exportId` to track progress.



## OpenAPI

````yaml /api-reference/openapi.json post /exports/{exportType}
openapi: 3.0.2
info:
  title: Cloneable Platform API
  version: 1.0.0
  description: >-
    REST API for the Cloneable utility field platform — manage jobs,
    configurations, poles/spans/midspans (data objects), templates, custom
    types, field photos, and exports.


    ### Authentication

    Pass your organization API key (`sk-cai-v1-...`) in the `x-api-key` HTTP
    header. Create keys in Cloneable Office under **Settings → API Keys**.


    ### Conventions

    - **Units:** All stored distances, heights, and clearances are in
    **meters**.

    - **Query encoding:** Object and array query parameters (such as `filters`
    or `sorting`) must be sent as **Unicode-safe base64 JSON** via
    `URLSearchParams`: `params.set("filters",
    btoa(JSON.stringify(value).replace(/[\u007f-\uffff]/g, (c) => "\\u" +
    c.charCodeAt(0).toString(16).padStart(4, "0"))))`.

    - **Rate limits:** 500 requests per 60 seconds per authenticated user and
    endpoint path (`429 Too Many Requests`).
  contact:
    name: Cloneable Support
    url: https://docs.cloneable.ai
    email: support@cloneable.ai
servers:
  - url: https://api.cloneable.ai
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Authentication
    description: Verify your API key and inspect the bound organization and user context.
  - name: Jobs
    description: Create, list, update, archive, restore, and inspect utility field jobs.
  - name: Job Groups
    description: Organize jobs into named groups and folders.
  - name: Configurations
    description: >-
      Manage shared job configurations, template assignments, model snapshots,
      and revision history.
  - name: Data Objects
    description: >-
      Create, query, update, archive, and inspect poles, spans, midspans, and
      custom field records.
  - name: Templates
    description: >-
      Manage data object templates, field schemas, calculated fields, and
      auto-fill recomputation.
  - name: Custom Types
    description: >-
      Manage reusable picklists and structured option tables referenced by
      template fields.
  - name: Files & Photos
    description: >-
      Register file uploads, generate signed R2 upload/download URLs, and manage
      photo metadata.
  - name: Exports
    description: >-
      Trigger job exports, monitor export status and unsynced field photos, and
      inspect export issues.
  - name: Organization, Teams & Users
    description: >-
      Read organization metadata, effective configuration flags, teams, and
      member rosters.
paths:
  /exports/{exportType}:
    post:
      tags:
        - Exports
      summary: Trigger a job export
      description: >-
        Start an export for a job using a supported `exportType` (`csv` or
        `katapult`). Returns an `exportId` to track progress.
      operationId: triggerExport
      parameters:
        - name: exportType
          in: path
          required: true
          schema:
            type: string
            enum:
              - katapult
              - csv
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    file_id:
                      type: string
                    katapult_key_id:
                      type: string
                      format: uuid
                    export_type:
                      default: node
                      type: string
                      enum:
                        - node
                        - section
                    node_url:
                      type: string
                    job_id:
                      type: string
                    node_id:
                      type: string
                    connection_id:
                      type: string
                    section_id:
                      type: string
                    skip_existing:
                      type: boolean
                    attachments:
                      type: array
                      items:
                        type: object
                        properties:
                          manual_height:
                            type: string
                          height:
                            type: string
                          pixel_selection:
                            type: array
                            items:
                              type: object
                              properties:
                                percentX:
                                  type: number
                                percentY:
                                  type: number
                              required:
                                - percentX
                                - percentY
                          type:
                            type: string
                    elements:
                      type: array
                      items:
                        nullable: true
                    traces:
                      type: array
                      items:
                        type: object
                        properties:
                          trace_type:
                            type: string
                          attributes:
                            type: object
                            additionalProperties:
                              nullable: true
                          element_indices:
                            type: array
                            items:
                              type: number
                        required:
                          - trace_type
                          - element_indices
                  required:
                    - file_id
                - type: object
                  properties:
                    columns:
                      type: array
                      items:
                        type: string
                    data:
                      type: array
                      items:
                        type: object
                        additionalProperties:
                          nullable: true
                    filename:
                      type: string
                  required:
                    - columns
                    - data
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  exportId:
                    type: string
                  data:
                    nullable: true
                required:
                  - message
                  - exportId
        '400':
          description: Bad Request — invalid path, query, or body parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '401':
          description: Unauthorized — missing or invalid `x-api-key` header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden — API key lacks permission for this action or is read-only
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Unprocessable Entity — request payload failed domain validation
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '429':
          description: >-
            Too Many Requests — rate limit exceeded (500 requests per 60 seconds
            per authenticated user and endpoint path)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '503':
          description: >-
            Service Unavailable — transient upstream or database error; safe to
            retry
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
components:
  schemas:
    ApiError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable error description
        code:
          type: string
          description: Optional machine-readable error or support code
      required:
        - message
      example:
        message: Invalid API Key
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Organization-scoped API key (`sk-cai-v1-...`). Create one in Cloneable
        Office under Settings → API Keys.

````

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