Skip to main content

Annotations API

The Annotations API makes it easy to add, read, and delete annotations on documents in Aprimo. You provide the required properties as JSON, and Aprimo generates and stores the annotation in the correct format automatically.

The API supports:

  • 13 annotation types, from rectangles and highlights to freehand drawings, sticky notes, and file attachments.
  • Three contexts: documents in a workflow, assets in a collaborative collection, and assets with review findings.
  • Reference links that tie an annotation to one or more reference documents, and optionally to a specific tag within each.

For ready-to-copy request bodies, see Annotation Request Examples.


Authorization​

Every Annotations API route requires a bearer token for a user with either of these rights:

  • Integration API – Access
  • System Administration – Access

Without one of them, the API returns 403 Forbidden. For information on obtaining a token, see Authorization.

The collection and review-findings routes also apply the same permission rules as the Aprimo user interface:

ContextAdditional requirements
Collaborative collectionThe user must have access to the record and be able to read or modify the collection. Otherwise the API returns 403 with the message User not a member of this collection.
Review findingsThe Annotation Viewer must be enabled, the record must have a usable master file and review findings, and the user must be able to modify the record. Otherwise the API returns 403.

API Endpoints​

Annotations are scoped to the context where they are created, and are visible only within that collection or asset record.

All three contexts support the same operations and the same request body.

ContextOperationEndpoint
WorkflowCreatePOST /api/assets/{id}/versions/{versionId}/annotations-data
WorkflowListGET /api/assets/{id}/versions/{versionId}/annotations-data
WorkflowDeleteDELETE /api/assets/{id}/versions/{versionId}/annotations-data/{annotationId}
Collaborative collectionCreatePOST /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations
Collaborative collectionListGET /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations
Collaborative collectionDeleteDELETE /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations/{annotationId}
Review findingsCreatePOST /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations
Review findingsListGET /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations
Review findingsDeleteDELETE /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations/{annotationId}
  • Workflow routes use the integer id of the asset and the integer versionId.
  • Collection and review findings routes use the GUIDs of the collection, record, and version.

List Annotations​

List routes accept offset (default 0) and limit (default 50) query parameters and return a paged result:

{
"totalCount": 1,
"offset": 0,
"limit": 50,
"annotations": [ /* annotation objects, see Response Payload */ ]
}

Replies are not included.

Create Annotation​

Send the annotation as a JSON body with Content-Type: application/json. The one exception is fileattachment, which must be sent as multipart/form-data. See File Attachments.

Delete Annotation​

Deletes an annotation by its annotationId.


Supported Annotation Types​

TypeUse it to
rectangleMark an area on a page.
highlightHighlight a text passage.
strikeoutStrike through text that should be removed or ignored.
underlineUnderline a text passage.
squigglyMark text with a squiggly underline.
calloutAdd a callout box that points at an area.
freehandDraw freehand lines.
freehandandhighlightDraw freehand lines with a translucent highlighter effect.
freetextPlace text directly on the page.
stickynotePlace a sticky note on the page.
markinserttextMark a point where text should be inserted.
markreplacetextMark text that should be replaced.
fileattachmentAttach a file to a location on the page.

How It Works​

When you create an annotation, you provide a JSON payload describing:

  • Type: The annotation tool, one of the 13 types above.
  • Page: Which page of the document the annotation belongs to.
  • Author: The user who created the annotation.
  • Geometry: Where the annotation appears on the page, such as a bounding box, quads, or ink strokes.
  • Style: Visual options like color, width, or opacity.
  • Content: The annotation comment, quoted text, or label.
  • Reference Links: Optional links to one or more reference documents, each with an optional tag.

Aprimo converts this request into the annotation format used by the Annotation Viewer and saves it. Annotations created through the API display in the Annotation Viewer exactly as drawn.


Annotation Configuration​

Common Fields (All Annotation Types)​

PropertyTypeRequiredNotes
typestring✅One of the 13 supported types
pageinteger✅Page number (0-indexed)
authorIdinteger✅Aprimo user ID of the creator. If this is an application user, they can modify the annotation in the UI
geometryobject✅Position of the annotation. A boundingBox is required for every type
styleobject✅Visual style. color is required for every type except fileattachment
contentobject❌Comment, quoted text, and label. quotedText is required for some types
referenceLinkobject❌A single reference link
referenceLinksarray❌One or more reference links

Bounding box and quad coordinates must be non-zero.

Requirements by Annotation Type​

In addition to the common fields, each type has its own required fields. Sending a field listed under Not supported returns a 400 Bad Request.

TypeRequiredNot supported
rectanglestyle.color, style.widthstyle.opacity, geometry.quads, content.quotedText
highlightstyle.color, style.opacity, geometry.quads, content.quotedTextstyle.width
strikeoutstyle.color, geometry.quads, content.quotedTextstyle.width
underlinestyle.color, geometry.quads, content.quotedTextstyle.width
squigglystyle.color, style.width, geometry.quads, content.quotedText
calloutstyle.color, style.width
freehandstyle.color, style.width, geometry.inkList
freehandandhighlightstyle.color, style.width, geometry.inkList
freetextstyle.color
stickynotestyle.color, style.width
markinserttextstyle.color, style.width
markreplacetextstyle.color, style.width, geometry.quads
fileattachmentA file (see File Attachments)

Additional notes:

  • style.width must be between 1 and 20. For freetext, style.width is optional and may be between 0 and 20.
  • style.opacity must be between 0.0 and 1.0. It is optional for freehandandhighlight.
  • geometry.quads is optional for markinserttext.
  • style.color is optional for fileattachment.
  • Text style (font, size, and alignment) uses platform defaults for text-based types such as freetext, markinserttext, and markreplacetext. Only style.color and style.width can be set through the API.

Geometry​

PropertyTypeNotes
boundingBoxobjectPosition of the annotation. Required for every type
quadsarrayCoordinates for each text segment. Used by text markup types
inkListarray of arraysStrokes for freehand drawing. Each stroke is an array of points

Bounding Box

PropertyTypeNotes
leftfloatLower-left X
bottomfloatLower-left Y
rightfloatUpper-right X
topfloatUpper-right Y

Quads

Each quad describes a four-point polygon around a text segment.

PropertyTypeNotes
x1,y1doubleTop-left corner
x2,y2doubleTop-right corner
x3,y3doubleBottom-left corner
x4,y4doubleBottom-right corner

Ink List

inkList is an array of strokes. Each stroke is an array of { "x": ..., "y": ... } points, and must contain at least two points.

Style​

PropertyTypeNotes
colorstringHex color string in #RRGGBB format
widthinteger1 - 20. See Requirements by Annotation Type
opacitydouble0.0 - 1.0. See Requirements by Annotation Type

Content​

PropertyTypeNotes
commentstringMax of 3700 characters. Supports linebreak characters. For freetext, this is the text placed on the page
quotedTextstringMax of 3700 characters. Fixed data, not editable in the UI
fixedLabelstringMax of 120 characters. Fixed data, not editable in the UI

Exceeding a limit returns a 400 Bad Request.

A reference link ties an annotation to a reference document in the DAM. Send a single link in referenceLink, or one or more links in the referenceLinks array.

PropertyTypeNotes
documentUuidstringRecord ID of a DAM asset
tagIdintegerOptional. Points the link at a specific tag within the reference document
  • Reference links work on all 13 annotation types and in all three contexts.
  • tagId requires documentUuid on the same link. Otherwise the API returns 400 with tagId requires documentUuid to be populated for each reference.
  • The tag must belong to the referenced document. Otherwise the API returns 400. The API does not provide a tag lookup, so you must obtain tag IDs yourself.
  • Each document or tag may be referenced only once per annotation. Duplicates return 400.
  • Reference links require Claims Management to be enabled for your tenant.
  • Sending more than one link requires the multiple references feature to be enabled for your tenant.
  • Annotations that do not use reference links continue to work unchanged.

File Attachments​

A fileattachment annotation attaches a file to a location on the page. Because it carries file data, it is sent as multipart/form-data instead of JSON. Sending it as application/json returns a 400 Bad Request.

The request has two parts:

PartContent
annotationThe annotation as JSON. Do not include file data in this part
fileThe file to attach. Exactly one file is required
  • fileName in the annotation part is optional. If omitted, the uploaded file's name is used. File names cannot contain < > : " / \ | ? *.
  • mimeType is optional. If omitted, the content type of the uploaded file is used.
  • File attachments cannot exceed 5 MB. A larger file returns 400 with the message File attachment exceeds maximum size limit of 5MB. Current file size: [X]MB.

See the file attachment example.


Response Payload​

When you create or fetch an annotation, the API returns:

PropertyTypeNotes
annotationIdintegerID of the annotation, unique within the host document
authorIdintegerUser ID of the creator
associatedNumberintegerAnnotation number on the document
createdDatedatetimeWhen the annotation was created
modifiedDatedatetimeWhen the annotation was last modified
typestringOne of the 13 supported types
pageintegerPage number (0-indexed)
geometryobjectGeometry details
styleobjectStyle details
contentobjectAnnotation content
referenceLinkobjectThe first linked DAM asset, if any
referenceLinksarrayAll linked DAM assets, each with an optional tagId
replyCountintegerNumber of replies (including status changes)
collectionGuidstringCollection routes only
recordGuidstringCollection and review-findings routes only
versionGuidstringCollection and review-findings routes only

Response Example​

Example response from creating a rectangle annotation:

{
"annotationId": 242,
"authorId": 57,
"associatedNumber": 3,
"createdDate": "2026-11-13T04:07:12.273",
"modifiedDate": "2026-11-13T04:07:12.273",
"type": "rectangle",
"page": 3,
"geometry": {
"boundingBox": {
"left": 27.44,
"bottom": 220.16,
"right": 358.12,
"top": 456.98
}
},
"style": {
"color": "#C544CE",
"width": 4
},
"content": {
"comment": "This is the main text of the annotation",
"fixedLabel": "Created by API"
},
"referenceLink": {
"documentUuid": "25E4AF5A-6DB3-72DC-F5F1-E18F32627863"
},
"referenceLinks": [
{
"documentUuid": "25E4AF5A-6DB3-72DC-F5F1-E18F32627863"
}
],
"replyCount": 0
}

Derived Annotation Values​

These values are generated automatically by Aprimo when saving the annotation:

PropertySourceNotes
nameauto-generated GUIDUnique identifier
subjecttype of annotationFor example Rectangle, Highlight, or Underline
creationdatecurrent datetimeWhen the annotation was created
datecurrent datetimeWhen the annotation was created or edited
flags"print"Fixed value
dashes""Fixed value

Errors​

StatusWhen
400 Bad RequestThe body fails validation, such as a missing required field, a field the type does not support, an exceeded limit, or an invalid reference link. The response lists each problem.
403 ForbiddenThe user lacks the Integration API or System Administration access right, or lacks permission to the collection or record.
404 Not FoundThe document, version, or annotation could not be found.

Validation & Limitations​

  • The API does not check that the page number exists in the document.
  • It does not verify that bounding box or quad values are within document bounds.
  • Sending the same payload multiple times may create duplicate annotations.
  • Editing annotations and creating replies is not supported.
  • The API does not provide a tag lookup. You must supply valid tag IDs yourself.