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_KEYheader. - A PDF file to send for signature. Any PDF works; this guide uses
employment-agreement.pdf.
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
documentcreates the document inline — atitleand the file content are all it needs. ThefileContentBase64value is your PDF encoded as base64 (shortened here); for large or reused files you can upload first and pass afileIdinstead — see Upload and download files.send.recipientslists who has to act.purposeissign, 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.signatureFieldsplaces a field on the page for a recipient to fill.typeissignature, so this is where they sign. Thepositionvalues are fractions of the page size (x: 0.6means 60 % from the left edge), so they work for any page format.
Response
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
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
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’scontent endpoint returns the binary:
Request
Response
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.