Before you begin
- Your signature image is configured in the Circularo web app. Signing uses an image that was set up as a signature there; a file you upload through the API cannot be used for one. The first step reads what you have.
- Signing is enabled on your own account. Applying a signature needs
use_signon top of the permission to start a transaction — without it the call is refused with403, even though everything else about it is valid.
Step 1: Look up your signature
GET /me reports the signature and initials images configured on your account:
Request
Response
fileId of the one you want to sign with. You can leave it out when signing, in which case Circularo uses the first configured image of the matching kind — naming it explicitly is worth it as soon as an account has more than one.
Step 2: Sign the document
Send the document with anapply block and no recipients. Everything else is what you already know from sending — the document can be uploaded inline like this, or referenced by documentId if it already exists:
Request
Response
completed the moment it is created, and you appear as its single, already finished recipient. That entry is synthetic — its id is null, because there is nobody to remind, reassign or remove — so skip it when you feed recipients into management calls. Note document.mainFileId: signing produces a new file — the signed PDF — which you download the same way as after any other transaction.
A signature is what you get without saying otherwise; to stamp your initials instead, set the signature’s type and give it the fileId of one of your configured initials images.
A document runs exactly one transaction, and signing it yourself uses it up. If the document also has to go to somebody else, ask for both in the same call —
apply and send together sign it on your behalf and then send it on. Afterwards it is too late: a second transaction on the same document is refused with 409.Step 3: Check the signature on the document
Request
Response
transaction shows the process behind it is completed. From here the usual evidence — the audit trail and the certificate of fulfillment — is available for this document like for any other.
Complete example
Signing a document with your own signature, as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.Next steps
- Send a document to other people instead — Send a document to several recipients in order.
- Keep the evidence: the audit trail and the certificate of fulfillment — Collect the evidence of a signed document.