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

# Workflow recipes

> Copy-pasteable end-to-end recipes for common Cloneable Platform API tasks.

## 1. Pull all poles for a job

1. Find the job UUID with `GET /pole-inspection/jobs`.
2. Fetch the job's configuration (`GET /pole-inspection/configurations/{id}`) to see its template IDs.
3. Query objects with `GET /data-object-sync/filtered-data-objects` using a base64-encoded `filters` array on `job_id`, paging until `next_cursor` (or page count) is exhausted.
4. Call `GET /data-object/{id}` for any pole where you need the full `measurement_data` payload.

## 2. Download all photos for a job

1. Check `GET /exports/unsynced-files/{jobId}` first to see if any fielders still have unuploaded photos (`saved_to_cloud: false`).
2. Collect file UUIDs from each object's `measurement_data.images[].image` and photo fields.
3. For each file UUID, call `GET /file/{id}/download-url` and download the bytes from the returned signed URL (valid for 1 hour).

## 3. Upload a photo and attach it to a pole

1. Register the file with `PUT /file` (or up to 50 at once with `POST /file-batch/register`) to get `{ id, uploadUrl }`.
2. `PUT` the image bytes directly to `uploadUrl` with the matching `Content-Type`.
3. Confirm the upload with `POST /file/{id}` (`{ "saved_to_cloud": true }`) or `POST /file-batch/confirm`.
4. Attach the file UUID to your pole via `POST /data-object/{id}/fields`.

## 4. Deep-link back into Cloneable Office

Link users from your own app or reports directly into Cloneable Office:

* **Utility Map filtered to a job:** `https://app.cloneable.ai/tools/utility/map?job_ids=<job_uuid>`
* **Template editor:** `https://app.cloneable.ai/builder/objects/edit?id=<template_object_id>`
* **Configuration settings:** `https://app.cloneable.ai/settings/configurations?selected=<configuration_uuid>`


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