Before you begin
- A document nobody has acted on yet. Annotations are accepted only before the document has been sealed and before its transaction has started.
- An uploaded image, if you want to place one. The examples embed a PNG uploaded as in Upload and download files.
Step 1: Add a note and an image
Text goes intoannotations, images into images, and each element says where it belongs:
Request
Response
pageslists the pages an element is placed on, andpositionplaces it there. The values are fractions of the page, the same coordinate system placed signature fields use — Place fields on the document explains it in detail.- An image is not uploaded here:
fileIdreferences a file you uploaded beforehand, and it is embedded into the document at the position you give it. - The response is the updated document.
annotationsandimageslist everything it now carries, each with who added it and when. - An annotation’s
typesays what it represents; left out, it is a plain piece of text.
Step 2: Seal the document
A seal is applied to the document as a whole, so the request only says which proof to add:Request
Response
useCertificateseals the document with a digital certificate;useTimestampadds a trusted timestamp from a Time Stamping Authority, proving when it was sealed. Enable at least one — a request with neither is rejected with400.- The seal joins the document’s
signatures, markedtype: seal, together with any signatures the document already carries. - Sealing writes the sealed PDF, so
mainFile.fileIdnow points at a new file. Download it as in Upload and download files. - Sealing consumes transaction capacity from your subscription.
Add your annotations before you seal the document or send it to anyone. Afterwards the same call is refused with
409 — and the only way to annotate that content is a fresh copy of the document.Annotating and sending can happen in one call:
POST /transactions takes apply.annotations and apply.images next to send, adding exactly the same elements as the transaction starts. Use the endpoint on this page when nothing is being sent.Complete example
Annotating a document and sealing it, as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.Next steps
- Send the document to recipients instead of finishing it yourself — Signing & approvals.
- Copy a document that can no longer be edited — Copy a document and share a view link.