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

# Platform API overview

> Integrate with Cloneable jobs, configurations, poles, spans, photos, and exports over REST.

The Cloneable Platform API gives you direct programmatic access to your organization's utility field data — jobs, configurations, poles, spans, midspans, templates, picklists, field photos, and exports.

## Base URL

```text theme={null}
https://api.cloneable.ai
```

All requests must use HTTPS and return JSON unless noted otherwise (for example, signed R2 photo downloads).

## Try it in the Playground

Every endpoint page in this reference includes an interactive **Try It** playground:

1. Create an API key in Cloneable Office under **Settings → API Keys** (`sk-cai-v1-...`).
2. Click **Try It** on any endpoint and paste your key into the `x-api-key` field (stored locally in your browser session).
3. Run live requests against your organization and copy the generated `cURL`, JavaScript, or Python snippet.

## Quickstart

Verify your key with `GET /auth/whoami`, then list your active jobs:

```bash cURL theme={null}
curl https://api.cloneable.ai/auth/whoami \
  -H "x-api-key: $CLONEABLE_API_KEY"

curl https://api.cloneable.ai/pole-inspection/jobs \
  -H "x-api-key: $CLONEABLE_API_KEY"
```

```ts TypeScript theme={null}
const headers = { 'x-api-key': process.env.CLONEABLE_API_KEY! }

const me = await fetch('https://api.cloneable.ai/auth/whoami', { headers }).then((r) => r.json())
const jobs = await fetch('https://api.cloneable.ai/pole-inspection/jobs', { headers }).then((r) => r.json())
console.log(me.company_id, jobs.data?.length)
```

```python Python theme={null}
import os, requests

headers = {"x-api-key": os.environ["CLONEABLE_API_KEY"]}
me = requests.get("https://api.cloneable.ai/auth/whoami", headers=headers).json()
jobs = requests.get("https://api.cloneable.ai/pole-inspection/jobs", headers=headers).json()
print(me["company_id"], len(jobs.get("data", [])))
```

> [!NOTE]
>
> **Measurement units:** All numeric distances, heights, leads, sags, and clearances are stored and returned in **meters**, regardless of the display unit configured in Cloneable Office.


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