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

# Endpoint mapping

The endpoints of API v1 that its documentation for integrations described, and what to call instead. Paths are shown without the base URL: API v1 sits under `/api/v1`, Circularo API v2 under `/api/v2`. A — marks what has no counterpart on the other side, and an empty cell continues the row above.

## Authentication and account

| API v1 | API v2 |
| - | - |
| `POST /login` | Not supported — create an API key in the web app |
| `POST /login/unlock` | Not supported |
| `POST /login/recovery` | Not supported |
| `GET /logout` | Not supported — revoke the key instead |
| `GET /login` | `GET /me` |
| `POST /api/key` | `POST /api-keys` |
| `GET /api/key` | `GET /api-keys` |
| `DELETE /api/key/{key}` | `DELETE /api-keys/{id}` — takes only the non-secret id |
| `GET /ping` | `GET /ping` |

## Documents

| API v1 | API v2 |
| - | - |
| `POST /documents` | `POST /documents` |
| `GET /documents/{id}` | `GET /documents/{id}` |
| `DELETE /documents` | `DELETE /documents/{id}` — one document per call |
| `POST /search` | `POST /documents/search`, or `GET /documents` for simple filters |
| `DELETE /search/scroll` | Not needed |
| `PUT /documents/annotate/{version}` | `POST /documents/{id}/annotations` |
| `PUT /documents/seal/{version}` | `POST /documents/{id}/seal` |
| `PUT /documents/sign/{version}` | `POST /transactions` with `apply` |
| `GET /documents/{id}/audit` | `GET /documents/{id}/audit-trail` |
| `POST /attachments/{id}` | Not supported — pass `attachments` to `POST /documents` when you create the document |
| `GET /attachments/{id}/{hash}` | `GET /files/{id}/content` with a `fileId` from the document's `attachments` |
| `DELETE /attachments/{id}/{hash}/{version}` | Not supported |
| — | `POST /documents/{id}/restore`, `POST /documents/{id}/clone` |
| — | `GET /documents/{id}/certificate-of-fulfillment` |
| — | `GET /documents/{id}/history` |
| — | `POST /documents/seal` to seal a PDF without storing it |

Creating a document takes different fields:

| API v1 | API v2 | Note |
| - | - | - |
| `documentTitle` | `title` | |
| `documentType` | `metadataDefinition` | |
| `pdfFile.content` | `mainFileId` | The main file |
| `file` | `attachments` | |
| `documentCategory` | `category` | |
| `optionalData.folder` | `folderId` or `scope` | `folderId` places the document in that folder, whichever tree it belongs to; `scope` alone places it at the root of a tree. Send one of them, not both |
| `convertToPDF`, `usePdfA` | `pdfConversion` | `pdf` or `pdfa`; defaults to `none`, so a file that is not a PDF is stored as it is |
| `content`, `name`, `public` inside `file` and `submittedFiles` | `fileId`, `fileName`, `isPublic` | |
| `definitionType`, `workflow` | — | Gone |
| `optionalData.cloneMainFile`, `optionalData.cloneFiles` | — | Gone, because a file that is already in use is copied automatically |

A document from a template (`customTemplate`) is created by `POST /transactions` with `templateId` — which also starts its transaction: API v2 cannot create a document from a template without sending or signing it.

The audit trail is available at any point in the document's life except while it is in the trash. The certificate of fulfillment has an endpoint of its own; it requires a finished transaction and answers `409` until then.

## Sharing and signing

| API v1 | API v2 |
| - | - |
| `POST /share` | `POST /transactions` |
| `PUT /share/disable` | `POST /transactions/{id}/cancel`, or `DELETE /transactions/{id}/recipients/{recipientId}` |
| `POST /share/reminder` | `POST /transactions/{id}/remind` for email, or `.../recipients/{recipientId}/remind` for one recipient or for SMS |
| `GET /share/{shareId}/validate` | `POST .../recipients/{recipientId}/link` |
| `POST /share/permanent` | `POST /documents/{id}/link` |
| — | `GET /transactions/{id}` |
| — | `GET /transactions/{id}/recipients`, `.../recipients/{recipientId}` |
| — | `PATCH /transactions/{id}/recipients/{recipientId}` |
| — | `POST .../recipients/{recipientId}/reassign` |

See [From shares to transactions](https://developers.circularo.com/migrate-from-api-v1/from-shares-to-transactions.md) for what changes beyond the paths.

## Files

| API v1 | API v2 |
| - | - |
| `POST /files/saveFile` | `POST /files` |
| `GET /files/loadFile/hash/{hash}` | `GET /files/{id}/content` |
| — | `GET /files/{id}` for the metadata alone |

A file is addressed by `id` everywhere; the term "hash" is gone. Metadata and content are separate endpoints, so you can check a file's size, page count or checksum without downloading it.

## Folders

| API v1 | API v2 |
| - | - |
| `POST /folders` | `POST /folders` |
| `GET /folders/{folderId}` | `GET /folders/{id}` |
| `DELETE /folders` | `DELETE /folders/{id}` — one folder per call |
| `PUT /folders/move` | `PUT /documents/{id}/folders/{scope}` for a document, `PUT /folders/{id}/parent` for a folder |
| `POST /search` with `allowFolders: true` | `GET /folders` to list and filter |
| — | `DELETE /documents/{id}/folders/{scope}` |
| — | `POST /folders/{id}/restore` |

The single move endpoint became two, because placing a document in a folder (a document can sit in both trees at once) and moving a folder within its own tree are different operations with different rules. See [What works differently](https://developers.circularo.com/migrate-from-api-v1/what-works-differently.md) for the `scope` axis.

## Metadata definitions

| API v1 | API v2 |
| - | - |
| `GET /definitions/documents` | `GET /metadata-definitions` |
| `GET /definitions` | `GET /metadata-definitions` |
| `GET /definitions/workflows` | Not needed — documents created through API v2 always get the standard workflow |
| — | `GET /metadata-definitions/{name}` |

What used to be called a document type or a document definition is a **metadata definition** throughout API v2. The identifiers themselves are unchanged, so `d_default` is still `d_default`.

## Templates

| API v1 | API v2 |
| - | - |
| `POST /templates/search` | `GET /templates` |
| `GET /templates/{id}` | `GET /templates/{id}` |
| `POST /templates` | Create templates in the web app |
| `PUT /templates` | Edit templates in the web app |
| `DELETE /templates` | Delete templates in the web app |

Templates are designed in the web app — where you can place fields visually and see the result — and used through the API: `GET /templates` finds one, and passing its `templateId` to `POST /transactions` applies it. A signing template places its fields and defines the recipient roles, which `GET /templates/{id}` describes, so you know which recipients the transaction needs; a document template supplies only the file, title and metadata definition. Either kind also decides whether the recipients act in sequence, overriding `send.sequential`. Each recipient's own settings — verification, permissions, reminders, deadline — and the message sent out are not taken from the template; set them in the request.

## Users and groups

| API v1 | API v2 |
| - | - |
| `POST /users` | `POST /users` — one account per call |
| `GET /users/{id}` | `GET /users/{id}` |
| `PUT /users/{id}` | `PATCH /users/{id}` |
| `DELETE /users/{id}` | `DELETE /users/{id}` |
| `POST /users/search` | `GET /users` |
| `POST /users/{id}/addToGroup` | `PUT /groups/{id}/members/{userId}` |
| `POST /users/{id}/removeFromGroup` | `DELETE /groups/{id}/members/{userId}` |
| `GET /groups/{id}` | `GET /groups/{id}` |
| — | `GET /groups` |

Membership is now a sub-resource of the group rather than an action on the user: the group moves from the `groupname` query parameter into the path, followed by the user.

Watch who may call these endpoints. Reading groups (`view_groups`) and every write to an account or to group membership require an organization administrator, as before — but a system administrator, who belongs to no organization, is no longer accepted and cannot perform these organization-scoped operations at all. Reading users, including a single user, now needs only `view_users`.

## Audit logs, reports and dashboards

| API v1 | API v2 |
| - | - |
| `POST /logs/search` | `GET /audit-logs` |
| `DELETE /logs/scroll` | Not needed |
| `POST /search/reports` | `GET /reports` |
| `POST /search/dashboards` | `GET /dashboards/{name}` — one dashboard per call |
| — | `GET /audit-logs/{id}` |
| — | `GET /dashboards` |

These searches are `GET` requests with named parameters, and there is no scroll context to close — see [What works differently](https://developers.circularo.com/migrate-from-api-v1/what-works-differently.md). Note the terminology: `/audit-logs` is the organization-wide log, while a single document's trail is `GET /documents/{id}/audit-trail`.

## Exports

| API v1 | API v2 |
| - | - |
| `POST /export` | `POST /documents/{id}/export` for one document |
| | `POST /documents/export` for a filtered set |
| | `POST /folders/export` for folder trees |
| | `POST /me/export` for your own account data |
| | Not supported for the `csv`, `xlsx`, `report`, `file` and `mail` exporters — use `GET /reports` for tabular data |
| `GET /export` | Not needed — each export is its own endpoint |
| — | `GET /exports/{id}` to poll a queued export |

The `pdf`, `folder` and `userData` exporters of the one endpoint, chosen by its `exporterName` parameter, became four endpoints, each with its own options and its own documented response. The single-document export returns the archive directly; the others queue a job, return `202` with an id, and you poll `GET /exports/{id}` until its `status` is `completed` or `failed`. A completed export carries the `fileId` to download through `GET /files/{id}/content`, which is `null` when `isEmpty` is `true`. Every export is a ZIP.

## Webhooks

| API v1 | API v2 |
| - | - |
| `POST /webhooks` | `POST /webhooks` |
| `GET /webhooks` | `GET /webhooks` |
| — | `PATCH /webhooks/{id}` |
| `DELETE /webhooks/{id}` | `DELETE /webhooks/{id}` |

The request no longer takes `type` and `name`, because an API v2 webhook always watches the caller's organization. The callback URL must be HTTPS, and the response reports whether an HMAC secret is configured rather than returning the secret itself. Deliveries are unchanged, so what arrives at your receiver stays the same.

All of these endpoints require an organization administrator and cover that organization's webhooks only. A system administrator cannot use them, and an environment-wide webhook created on API v1 with `type: tenant` has no API v2 counterpart — it keeps delivering, but API v2 neither lists it nor accepts its id.


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