Skip to main content
In this guide you will send a PDF to a recipient for signature, track the transaction until everyone has signed, and download the signed result. Three endpoints do the whole job, and you call the tracking one again until the transaction is done.

Before you begin

You will need:
  • An API key. Create one in the Circularo web app under My Account → Manage API keys. Every request below authenticates with the Authorization: Bearer YOUR_API_KEY header.
  • A PDF file to send for signature. Any PDF works; this guide uses employment-agreement.pdf.
All paths in this guide are relative to your environment’s base URL — the examples use:
Every Circularo environment — production, or a non-production environment if you have one — has its own base URL and its own API keys. Point the examples at the environment your key belongs to.

Step 1: Create the transaction

A transaction is the signing or approval process of one document. A single call creates the document from your PDF and sends it to the recipient, with a signature field placed where they should sign:
Request
A few things to notice:
  • document creates the document inline — a title and the file content are all it needs. The fileContentBase64 value is your PDF encoded as base64 (shortened here); for large or reused files you can upload first and pass a fileId instead — see Upload and download files.
  • send.recipients lists who has to act. purpose is sign, so the recipient has to sign the document — other purposes let a recipient approve, review, accept, or just view it. A plain email address is enough; the recipient does not need a Circularo account, as long as your account may share outside the organization.
  • send.signatureFields places a field on the page for a recipient to fill. type is signature, so this is where they sign. The position values are fractions of the page size (x: 0.6 means 60 % from the left edge), so they work for any page format.
Response
The transaction is now in-progress and the recipient’s participation is pending — Circularo has emailed them an invitation to open and sign the document. Keep the transaction id for tracking, and note webUrl: a ready-made link to the document detail in the Circularo web app you can show to your own users.

Step 2: Track the progress

Read the transaction at any time to see where it stands:
Request
Response
The transaction status stays in-progress until everyone acts, and each recipient carries their own status alongside. Polling this endpoint is fine to start with — for production integrations, register a webhook and be notified about changes instead, as React to events with webhooks shows. completed is not the only ending. A recipient who refuses ends the transaction as rejected for everybody, a deadline that passes as expired, and calling it off yourself leaves it cancelled. All four are final, so wait for status to stop being in-progress rather than for the one you hoped for.

Step 3: Collect the result

Once the recipient signs, the same read shows the finished transaction:
Request
Response
Note document.mainFileId: the signed PDF — with the signature and Circularo’s evidence embedded — is a new file (signing never rewrites the content you sent).

Step 4: Download the signed PDF

The file’s content endpoint returns the binary:
Request
Response
Store the PDF wherever your process needs it — it is the legally meaningful artifact of the whole flow.

Complete example

The whole flow as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.

Next steps

  • Handle errors, retries, and pagination like a production integration — Robust integrations.
  • Hand out signing links yourself, add more recipients, form fields, or identity verification — Signing & approvals covers every variant of sending.
  • Upload and reuse files, search documents, and collect evidence — Documents & files.