# Docs Copia — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse the complete Copia Automation documentation, discover available pages, and retrieve full text content from any page on docs.copia.io. Quickly find answers by searching documentation content or accessing specific guides and references.

**Category:** Developer Tools | **Website:** [docs.copia.io/](https://docs.copia.io/) | **Docs:** [parse.bot/marketplace/74d7f014-8a66-4b4e-a1b8-f74f8b921978/docs-copia-io-api](https://parse.bot/marketplace/74d7f014-8a66-4b4e-a1b8-f74f8b921978/docs-copia-io-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-docs-copia-io-api-74d7f014/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_page

Retrieve the full text content of a specific documentation page by its path. Returns the page title, structured headings hierarchy, and full text content. The path can be obtained from list_pages or search_docs results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | Documentation page path, e.g. 'overview/glossary' or 'git-based-source-control/getting-started'. Can optionally include leading '/docs/' prefix. Paths are available from list_pages or search_docs results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-copia-io-api-74d7f014/get_page \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"path":"<string>"}'
```

### list_pages

Returns the full table of contents for the Copia documentation site, including all page titles, paths, descriptions, and breadcrumb navigation hierarchy. Contains approximately 155 pages covering Git-Based Source Control, DeviceLink, Copilot, Actions, and Support sections. Single-page response with no pagination parameter.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-copia-io-api-74d7f014/list_pages \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_docs

Full-text search across all Copia documentation pages. Returns matching pages ranked by relevance score, with the best matching section excerpt for each result. The query matches against page titles and body content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query string (e.g. 'DeviceLink backup', 'branching', 'Rockwell'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-copia-io-api-74d7f014/search_docs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
