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

# Definitions

Definitions describe how documents are structured and processed. A metadata definition is a document type — its fields, its form, its processing options and the workflow it follows; a workflow definition is a set of states and the actions that move a document between them. Create, read, update and delete both kinds, list the actions available in a workflow state, put individual transitions behind a right, and export a metadata definition together with everything it depends on.

## Endpoints

* `GET /definitions` — Retrieve all definitions
* `GET /definitions/documents` — Retrieve metadata definitions
* `POST /definitions/documents` — Create a metadata definition
* `PUT /definitions/documents` — Replace a metadata definition
* `PUT /definitions/documents/replaceable` — Check whether a metadata definition can be replaced
* `GET /definitions/documents/{name}` — Retrieve a metadata definition
* `DELETE /definitions/documents/{name}` — Delete a metadata definition
* `POST /definitions/documents/{name}/export` — Export a metadata definition with everything it depends on
* `GET /definitions/possibleActions/{workflow}` — Retrieve the actions available in a workflow state
* `GET /definitions/workflows` — Retrieve the workflow definitions you can reach
* `POST /definitions/workflows` — Create a workflow definition
* `PUT /definitions/workflows` — Update a workflow definition
* `GET /definitions/workflows/stats` — List every workflow and where it is used
* `GET /definitions/workflows/{name}` — Retrieve a workflow definition
* `DELETE /definitions/workflows/{name}` — Delete a workflow definition
* `PUT /definitions/workflows/{name}/restrict` — Put a workflow transition behind a right
* `PUT /definitions/workflows/{name}/unrestrict` — Release a workflow transition from its right


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