> ## 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.

# List archived jobs

> List soft-archived jobs (`archived_at` is set) with filtering and pagination. Archived jobs retain their objects, field history, and photos and can be restored with `POST /pole-inspection/jobs/{id}/restore`.



## OpenAPI

````yaml /api-reference/openapi.json get /pole-inspection/jobs/archived
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:
  /pole-inspection/jobs/archived:
    get:
      tags:
        - Jobs
      summary: List archived jobs
      description: >-
        List soft-archived jobs (`archived_at` is set) with filtering and
        pagination. Archived jobs retain their objects, field history, and
        photos and can be restored with `POST
        /pole-inspection/jobs/{id}/restore`.
      operationId: getArchivedJobs
      parameters:
        - name: status
          in: query
          schema:
            type: string
            enum:
              - pending
              - in_progress
              - completed
              - cancelled
        - name: configurationId
          in: query
          schema:
            type: string
            format: uuid
        - name: groupId
          in: query
          schema:
            oneOf:
              - type: string
                format: uuid
              - type: string
                enum:
                  - ungrouped
        - name: assignedTo
          in: query
          schema:
            type: string
            format: uuid
        - name: search
          in: query
          schema:
            type: string
            nullable: true
        - name: limit
          in: query
          schema:
            default: 50
            type: number
            minimum: 1
            maximum: 1000
        - name: offset
          in: query
          schema:
            default: 0
            type: number
            minimum: 0
        - name: sortBy
          in: query
          schema:
            default: created_at
            type: string
            enum:
              - name
              - created_at
              - updated_at
              - status
              - archived_at
        - name: sortOrder
          in: query
          schema:
            default: desc
            type: string
            enum:
              - asc
              - desc
        - name: updated_since
          in: query
          schema:
            type: string
            format: date-time
        - name: after
          in: query
          schema:
            type: string
        - name: active_only
          in: query
          schema:
            type: boolean
            nullable: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  jobs:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        description:
                          type: string
                          nullable: true
                        configuration_id:
                          type: string
                          format: uuid
                          nullable: true
                        group_id:
                          type: string
                          format: uuid
                          nullable: true
                        status:
                          type: string
                          enum:
                            - pending
                            - in_progress
                            - completed
                            - cancelled
                        assigned_to:
                          type: string
                          nullable: true
                        location:
                          type: string
                          nullable: true
                        external_id:
                          type: string
                          nullable: true
                        metadata:
                          type: object
                          properties:
                            jobIdField:
                              default: job_id
                              type: string
                            createdBy:
                              type: string
                            katapult_job_id:
                              default: null
                              type: string
                              nullable: true
                            dds_voltage:
                              type: string
                              nullable: true
                            export_batches:
                              type: array
                              items:
                                type: object
                                properties:
                                  batch_id:
                                    type: string
                                  started_at:
                                    type: string
                                  queued_count:
                                    type: number
                                required:
                                  - batch_id
                                  - started_at
                                  - queued_count
                            last_export_reference_time:
                              type: string
                        definition_pins:
                          type: object
                          properties:
                            pinned_at:
                              type: string
                            definitions:
                              type: array
                              items:
                                type: object
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - configuration
                                      - template
                                      - custom_type
                                      - workflow
                                  entity_id:
                                    type: string
                                  entity_name:
                                    default: null
                                    type: string
                                    nullable: true
                                  revision:
                                    type: integer
                                    nullable: true
                                  owner_org_id:
                                    default: null
                                    type: string
                                    nullable: true
                                required:
                                  - kind
                                  - entity_id
                                  - revision
                          required:
                            - pinned_at
                            - definitions
                          nullable: true
                        import_execution_id:
                          type: string
                          format: uuid
                          nullable: true
                        created_by:
                          type: string
                          nullable: true
                        archived_at:
                          type: string
                          format: date-time
                          nullable: true
                        archived_by:
                          type: string
                          nullable: true
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                      required:
                        - id
                        - name
                        - description
                        - configuration_id
                        - group_id
                        - status
                        - assigned_to
                        - location
                        - external_id
                        - metadata
                        - definition_pins
                        - import_execution_id
                        - created_by
                        - archived_at
                        - archived_by
                        - created_at
                        - updated_at
                  total:
                    type: number
                  limit:
                    type: number
                  offset:
                    type: number
                  sync_cursor:
                    type: string
                  next_after:
                    type: string
                required:
                  - jobs
                  - total
                  - limit
                  - offset
        '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'
        '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'
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.