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

# From shares to transactions

The biggest change from API v1: the signing process is no longer a set of shares but an object of its own, the transaction. This page maps the share-based calls onto it.

## The concept

On API v1, "share" means two unrelated things: a step in a signing process, and a plain grant of access to a document. Everything a signing process needed was expressed as a set of shares, one per recipient, and the process itself had no identity of its own — to ask "how is this agreement going?" you had to collect the shares back and reassemble the answer.

Circularo API v2 splits the two apart:

* A **transaction** is the signing or approval process a document goes through. It has its own id, its own status, and a list of recipients. You create it, watch it, and cancel it as one thing.
* A **link** is a permanent, read-only URL of a document, created with `POST /documents/{id}/link`. No process, no recipients — and anyone who holds it can open the document.

A recipient is not a resource of its own — it exists as part of its transaction, at `/transactions/{id}/recipients/{recipientId}`. To give a named person read access, add them as a recipient with the purpose `view` when you create the transaction. Sharing a document for viewing only — on its own, or after its transaction has finished — has no counterpart: a transaction needs at least one recipient who acts. Outside a transaction, hand out a link instead.

> [!NOTE]
>
> A document runs exactly one transaction, for its whole lifetime. Once a document has been sent out or signed, its transaction is used up; a second `POST /transactions` for the same document is refused with `409`. To start a new process on a finished document, clone it first with `POST /documents/{id}/clone` — the copy starts with a fresh transaction.

## Sending a document out

Three calls become one. Previously you uploaded the file, created the document from it, and then shared it — and on the share call you had to repeat the document's metadata definition, which the server already knew.

**Before** — upload, create, share

```http theme={null}
POST /api/v1/files/saveFile?token=YOUR_API_KEY
Content-Type: multipart/form-data
```

```http wrap theme={null}
POST /api/v1/documents?token=YOUR_API_KEY
Content-Type: application/json

{
  "definitionType": "ext",
  "workflow": "wf_archive",
  "convertToPDF": true,
  "body": {
    "documentTitle": "Employment Agreement",
    "documentType": "d_default",
    "pdfFile": { "content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth" }
  }
}
```

```http wrap theme={null}
POST /api/v1/share?token=YOUR_API_KEY
Content-Type: application/json

{
  "id": "Vt7RfKq2LmXe5ZwGyB4N",
  "objectType": "document",
  "type": "d_default",
  "message": "New client agreement to sign.",
  "data": [
    { "shareTo": "jane.doe@example.com", "sharePurpose": "sign" }
  ],
  "signatureFields": [
    {
      "user": [ "jane.doe@example.com" ],
      "type": "signature",
      "pages": [ 1 ],
      "position": {
        "percentX": 0.6,
        "percentY": 0.75,
        "percentWidth": 0.3,
        "percentHeight": 0.08
      }
    }
  ]
}
```

**After** — one call

```http wrap theme={null}
POST /api/v2/transactions
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "document": {
    "title": "Employment Agreement",
    "fileContentBase64": "JVBERi0x..."
  },
  "send": {
    "message": "New client agreement to sign.",
    "recipients": [
      { "recipient": "jane.doe@example.com", "purpose": "sign" }
    ],
    "signatureFields": [
      {
        "recipients": [ "jane.doe@example.com" ],
        "pages": [ 1 ],
        "position": { "x": 0.6, "y": 0.75, "width": 0.3, "height": 0.08 }
      }
    ]
  }
}
```

A few things to notice:

* `workflow` **and** `objectType` **are gone.** `objectType` only ever accepted `document`, and the workflow is filled in for you.
* `definitionType` **is gone** and `documentType` became `metadataDefinition`, which defaults to `d_default`. Send it only when you use a different definition.
* `type` **on the share is gone.** The transaction reads the document's definition from the document.
* `convertToPDF` **is gone.** A file that is not a PDF is converted automatically by `POST /transactions`.
* `purpose` **defaults to** `sign`, so it can even be omitted for an ordinary signature request.
* `sequential` **moved into** `send` and still defaults to `false` — without it, the recipients' `order` is ignored and everyone is asked at once.
* **The placed field keeps its structure under new names.** `user` became `recipients`, and the `percentX`/`percentY`/`percentWidth`/`percentHeight` position became plain `x`, `y`, `width` and `height` — still fractions of the page, measured from its top-left corner. `type` is now optional and defaults to `signature`, and a field must fit on the page: `x + width` and `y + height` may not exceed 1.
* **Fields to fill split by kind.** `signatureFields` takes only `signature` and `initials` fields; annotation fields move to `send.annotationFields` and image fields to `send.imageFields`. Stamp, organization stamp and Wacom fields have no counterpart. Your own `signatures`, `annotations` and `images` on the share move to `apply`, next to `send` (see [Signing it yourself](#signing-it-yourself)).

You do not have to inline the file. `document.fileId` takes the id from `POST /files` if you uploaded it separately, and `documentId` replaces the whole `document` object if the document already exists — which is also how you send a document with attachments: create it with `POST /documents` (`attachments`) first and pass its `documentId`:

```json wrap theme={null}
{
  "documentId": "Vt7RfKq2LmXe5ZwGyB4N",
  "send": {
    "recipients": [
      { "recipient": "jane.doe@example.com", "purpose": "sign" }
    ],
    "signatureFields": [
      {
        "recipients": [ "jane.doe@example.com" ],
        "pages": [ 1 ],
        "position": { "x": 0.6, "y": 0.75, "width": 0.3, "height": 0.08 }
      }
    ]
  }
}
```

Give the transaction either `documentId` or `document`, never both.

## What comes back

The response is the transaction, with an id you keep and a recipient entry per person:

```text wrap theme={null}
HTTP/2 201

{
  "id": "Tx4bHm9QsW2eK7yLpZ3n",
  "status": "in-progress",
  "createdAt": "2026-05-11T09:30:00.000Z",
  "document": {
    "id": "Vt7RfKq2LmXe5ZwGyB4N",
    "title": "Employment Agreement",
    "mainFileId": "f4b9xq2mz7k1w8rt3nv6y0ch5pdl9saj4eu2gko7bm1qz8xw3rnt6vy0ch5pdl9s"
  },
  "recipients": [
    {
      "id": "Rc8kT3nQ5wY9mB2xL7vZ",
      "recipient": {
        "email": "jane.doe@example.com",
        "fullname": null,
        "userId": null
      },
      "purpose": "sign",
      "status": "pending",
      "turnStartedAt": "2026-05-11T09:30:00.000Z"
    }
  ],
  "signatureFields": [
    {
      "id": "Sf3kN8wQ2mR5xY7bL1vZ",
      "recipients": [
        { "email": "jane.doe@example.com", "fullname": null, "userId": null }
      ],
      "pages": [ 1 ],
      "position": { "x": 0.6, "y": 0.75, "width": 0.3, "height": 0.08 },
      "isFilled": false
    }
  ]
}
```

The example is abridged: the full transaction also carries fields such as `sequential`, `message`, `completedAt` and `webUrl`, and each recipient its settings (`expiresAt`, `permissions`, `verification`, …).

Recipients come back as person objects: `userId` identifies an account holder and is `null` for a party without a Circularo account, and `email` is normally filled in for both.

`GET /transactions/{id}` returns the same shape at any time, which is how you monitor progress — no reassembling shares. `GET /documents/{id}` also returns a `transaction` object with the transaction's `id`, `status` and `waitingFor`, so you can check the status without a second call — and find the id of a transaction that was started on API v1.

## Recipient settings

The recipient object keeps most of what the old share data could express, renamed for clarity, with the protection fields gathered into one place.

| API v1 | API v2 | Note |
| - | - | - |
| `shareTo` | `recipient` | A user's `userId` or an email address |
| `sharePurpose` | `purpose` | Defaults to `sign`; `view`, `sign`, `approve`, `review` or `accept` |
| `validUntil` | `expiresAt` | An absolute timestamp |
| `automaticReminder` | `reminder` | `{ startAt, intervalDays }` — `start` became `startAt` |
| `order` | `order` | Used when `send.sequential` is `true`; equal values form one parallel round |
| `quorum` | `quorum` | With `order`, gives "any N of M" |
| `isMandatory` | `isMandatory` | Defaults to `true` |
| `language`, `message` | `language`, `message` | Unchanged |
| — | `permissions` | What the recipient may do besides the action itself; by default everything except `delegate` |
| `password`, `phone`, `mail`, `allowedOAuths`, `oauthFactors`, `kycProviders`, `kycFactors`, `nafathId` | `verification` | One object, one method |

The purposes `edit` and `execute` are not available.

`verification` is keyed by method, and a recipient has exactly one:

```json theme={null}
{
  "recipient": "jane.doe@example.com",
  "purpose": "sign",
  "expiresAt": "2026-05-29T21:59:59.000Z",
  "verification": { "sms": { "phone": "+420123456789" } }
}
```

`permissions` lists what a recipient may do besides the action itself — `print`, `delegate`, `viewMetadata`, `annotateOnReject`, `rejectWithoutComment` and `uploadFiles`. By default a recipient gets everything except `delegate`, which you add explicitly and which needs the delegation right on your own account.

## Handing out signing links yourself

If you also deliver the invitation over your own channel — a checkout page, a customer portal, your own email — you need the recipient's link. Circularo still sends its own email notification as well. This replaces `GET /share/{shareId}/validate`.

Two preconditions to be aware of — the old endpoint enforced the same rules:

* **The recipient's access must be protected**, either by a verification other than a password — email or SMS code, OAuth, Nafath or KYC — or, for a recipient who holds a Circularo account, by signing in. Asking for a link to an unprotected external recipient is refused with `409`. The SMS-protected recipient above qualifies; a bare `{ "recipient": "jane.doe@example.com" }` does not.
* **Your account needs the** `generate_external_share_link` **right**, and only the account that started the transaction can issue the link.

```http wrap theme={null}
POST /api/v2/transactions/{id}/recipients/{recipientId}/link
Authorization: Bearer YOUR_API_KEY
```

```text wrap theme={null}
HTTP/2 201

{
  "shareToken": "cir_Rc8kT3nQ5wY9mB2xL7vZ.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0",
  "shareUrl": "https://sandbox.circularo.com/share?shareToken=cir_Rc8kT3nQ5wY9mB2xL7vZ.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"
}
```

Two things to know:

* **The URL comes built.** You no longer assemble it from the token yourself, so a change to the web app's routes cannot break your integration.
* **It is a `POST`.** Issuing the link is recorded and freezes that recipient's verification — a later `PATCH` of `verification` on them answers `409`. Set the verification when you create the transaction, then issue the link. Calling it again returns the same token.

The link does not bypass identity verification: whatever you configured still has to be passed before the recipient can act.

For a permanent read-only link to the document itself, `POST /share/permanent` becomes `POST /documents/{id}/link`, which returns the same `shareToken` and `shareUrl` pair.

## Managing a running transaction

| API v1 | API v2 |
| - | - |
| `PUT /share/disable` with every share id | `POST /transactions/{id}/cancel` |
| `PUT /share/disable` with one share id | `DELETE /transactions/{id}/recipients/{recipientId}` |
| `POST /share/reminder` | `POST /transactions/{id}/remind` emails everyone still pending; `.../recipients/{recipientId}/remind` reminds one person, and is also the only way to remind by SMS |
| — | `PATCH /transactions/{id}/recipients/{recipientId}` to change a deadline, reminder, permissions or verification |
| — | `POST /transactions/{id}/recipients/{recipientId}/reassign` to hand a pending action to somebody else |

Changing a recipient's settings and reassigning a recipient both need transaction editing to be enabled in your organization's settings.

Cancelling used to mean collecting the share ids and disabling them together, and whether that ended the process depended on which ones you passed. Now the level says what happens: `cancel` ends the transaction, `DELETE` on a recipient withdraws that one pending action.

`DELETE` on a recipient is narrower than `PUT /share/disable` was, though. It is refused with `400` when the recipient is mandatory, when they are the last one still owed an action, or when removing them would take an order group below its quorum. Since `isMandatory` defaults to `true`, the first case is the one you will meet unless you deliberately created the recipient with `isMandatory: false` — so to stop a transaction, cancel it rather than removing people from it.

## Signing it yourself

`PUT /documents/sign/{version}` is replaced by the same `POST /transactions`, using `apply` instead of `send`:

```json wrap theme={null}
{
  "documentId": "Vt7RfKq2LmXe5ZwGyB4N",
  "apply": {
    "signatures": [
      {
        "fileId": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
        "pages": [ 1 ],
        "position": { "x": 0.6, "y": 0.75, "width": 0.3, "height": 0.08 }
      }
    ]
  }
}
```

The transaction comes back `completed`, with your signature recorded as its single recipient. Signing yourself uses up the document's one transaction, so the API v1 pattern of signing in one call and sharing in the next fails with `409` on the second call. Put both objects — `apply` and `send` — into one request instead: it signs the document and sends it on, which is how you sign first, before the other party ever sees the document.

Signing needs a signature image that was configured in the web app beforehand; `GET /me` lists the ones available to the account, and omitting `signatures[].fileId` uses your image of the matching kind (signature or initials). Place the signature with `pages` and `position`, or fill a field already on the document with `signFieldId`. An uploaded image (`blob`) can no longer be used, and `signOnBehalfOf`, a per-signature `timestamp` and the stamp, organization stamp and Wacom types have no counterpart.

> [!NOTE]
>
> Sealing and annotating are not transactions and did not move: they stay on the document, as `POST /documents/{id}/seal` and `POST /documents/{id}/annotations`, because neither starts the document's transaction (sealing does count against your subscription's capacity). Annotate before the transaction starts, though — once the document has been sent out or signed by you, or once it has been sealed, `POST /documents/{id}/annotations` answers `409`.


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