Skip to main content
A document runs exactly one transaction, so a copy is what gives you a second run — of a finished agreement, or of a master document you keep and copy per counterparty. A view link then lets somebody read a document without a Circularo account. This guide does both in two calls.

Before you begin

  • A document to copy. The examples copy an employment agreement that carries a category, metadata and one attachment.
  • Copying attachments needs the view_attachments right. Without it the copy is still created, just without the attachments.

Step 1: Copy the document

Cloning takes no input beyond the document you are copying:
Request
Response
A few things to notice:
  • The copy is made from the document’s current state — content, metadata, field values and attachments come along, and the title gains a Copy of prefix.
  • The copy owns its files: mainFile.fileId and the attachment identifiers are new, so working on one document never touches the other.
  • transaction is a fresh one — a different id, back to not-started. Nothing tied to the original’s transaction comes along: the fields placed for its recipients and the files they submitted are left behind, so the copy’s own transaction places its fields anew.
  • templateId is the one binding cloning does not release. It is null here because no template governs either document; had the original been created from a template, the copy would stay bound to the same one.
folders shows where the copy landed: the root of your personal tree, because the request named no target. Pass folderId or scope to place it somewhere else. A view link is created by asking the document for one:
Request
Response
shareUrl is ready to hand out — it opens the document, read-only, in the Circularo web app, and the recipient needs no account and no signing invitation. shareToken is the raw token the URL carries, for the cases where your own system stores it. Asking again returns the same link: it is a permanent property of the document, not a new grant each time.
The link never expires, anyone who has it can view the document, and the API has no way to withdraw it — a link you have handed out stays valid for as long as the document exists. Treat it as a secret, and use it only where that is acceptable.
A view link is not how you ask somebody to sign. A recipient of a transaction gets their own link, which identifies them and lets them act — see Hand out signing links yourself.

Complete example

Copying a document and publishing a view link to the copy, as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.

Next steps