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.
/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.
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, shareworkflowandobjectTypeare gone.objectTypeonly ever accepteddocument, and the workflow is filled in for you.definitionTypeis gone anddocumentTypebecamemetadataDefinition, which defaults tod_default. Send it only when you use a different definition.typeon the share is gone. The transaction reads the document’s definition from the document.convertToPDFis gone. A file that is not a PDF is converted automatically byPOST /transactions.purposedefaults tosign, so it can even be omitted for an ordinary signature request.sequentialmoved intosendand still defaults tofalse— without it, the recipients’orderis ignored and everyone is asked at once.- The placed field keeps its structure under new names.
userbecamerecipients, and thepercentX/percentY/percentWidth/percentHeightposition became plainx,y,widthandheight— still fractions of the page, measured from its top-left corner.typeis now optional and defaults tosignature, and a field must fit on the page:x + widthandy + heightmay not exceed 1. - Fields to fill split by kind.
signatureFieldstakes onlysignatureandinitialsfields; annotation fields move tosend.annotationFieldsand image fields tosend.imageFields. Stamp, organization stamp and Wacom fields have no counterpart. Your ownsignatures,annotationsandimageson the share move toapply, next tosend(see Signing it yourself).
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:
documentId or document, never both.
What comes back
The response is the transaction, with an id you keep and a recipient entry per person: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.
The purposes
edit and execute are not available.
verification is keyed by method, and a recipient has exactly one:
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 replacesGET /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_linkright, and only the account that started the transaction can issue the link.
- 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 laterPATCHofverificationon them answers409. Set the verification when you create the transaction, then issue the link. Calling it again returns the same token.
POST /share/permanent becomes POST /documents/{id}/link, which returns the same shareToken and shareUrl pair.
Managing a running transaction
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:
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.
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.