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:
| Context | Additional requirements |
|---|---|
| Collaborative collection | The 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 findings | The 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.
| Context | Operation | Endpoint |
|---|---|---|
| Workflow | Create | POST /api/assets/{id}/versions/{versionId}/annotations-data |
| Workflow | List | GET /api/assets/{id}/versions/{versionId}/annotations-data |
| Workflow | Delete | DELETE /api/assets/{id}/versions/{versionId}/annotations-data/{annotationId} |
| Collaborative collection | Create | POST /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations |
| Collaborative collection | List | GET /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations |
| Collaborative collection | Delete | DELETE /api/collections/{collectionGuid}/records/{recordGuid}/versions/{versionGuid}/annotations/{annotationId} |
| Review findings | Create | POST /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations |
| Review findings | List | GET /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations |
| Review findings | Delete | DELETE /api/records/{recordGuid}/versions/{versionGuid}/review-findings-annotations/{annotationId} |
- Workflow routes use the integer
idof the asset and the integerversionId. - 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
| Type | Use it to |
|---|---|
rectangle | Mark an area on a page. |
highlight | Highlight a text passage. |
strikeout | Strike through text that should be removed or ignored. |
underline | Underline a text passage. |
squiggly | Mark text with a squiggly underline. |
callout | Add a callout box that points at an area. |
freehand | Draw freehand lines. |
freehandandhighlight | Draw freehand lines with a translucent highlighter effect. |
freetext | Place text directly on the page. |
stickynote | Place a sticky note on the page. |
markinserttext | Mark a point where text should be inserted. |
markreplacetext | Mark text that should be replaced. |
fileattachment | Attach 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)
| Property | Type | Required | Notes |
|---|---|---|---|
type | string | ✅ | One of the 13 supported types |
page | integer | ✅ | Page number (0-indexed) |
authorId | integer | ✅ | Aprimo user ID of the creator. If this is an application user, they can modify the annotation in the UI |
geometry | object | ✅ | Position of the annotation. A boundingBox is required for every type |
style | object | ✅ | Visual style. color is required for every type except fileattachment |
content | object | ❌ | Comment, quoted text, and label. quotedText is required for some types |
referenceLink | object | ❌ | A single reference link |
referenceLinks | array | ❌ | 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.
| Type | Required | Not supported |
|---|---|---|
rectangle | style.color, style.width | style.opacity, geometry.quads, content.quotedText |
highlight | style.color, style.opacity, geometry.quads, content.quotedText | style.width |
strikeout | style.color, geometry.quads, content.quotedText | style.width |
underline | style.color, geometry.quads, content.quotedText | style.width |
squiggly | style.color, style.width, geometry.quads, content.quotedText | |
callout | style.color, style.width | |
freehand | style.color, style.width, geometry.inkList | |
freehandandhighlight | style.color, style.width, geometry.inkList | |
freetext | style.color | |
stickynote | style.color, style.width | |
markinserttext | style.color, style.width | |
markreplacetext | style.color, style.width, geometry.quads | |
fileattachment | A file (see File Attachments) |
Additional notes:
style.widthmust be between1and20. Forfreetext,style.widthis optional and may be between0and20.style.opacitymust be between0.0and1.0. It is optional forfreehandandhighlight.geometry.quadsis optional formarkinserttext.style.coloris optional forfileattachment.- Text style (font, size, and alignment) uses platform defaults for text-based types such as
freetext,markinserttext, andmarkreplacetext. Onlystyle.colorandstyle.widthcan be set through the API.
Geometry
| Property | Type | Notes |
|---|---|---|
boundingBox | object | Position of the annotation. Required for every type |
quads | array | Coordinates for each text segment. Used by text markup types |
inkList | array of arrays | Strokes for freehand drawing. Each stroke is an array of points |
Bounding Box
| Property | Type | Notes |
|---|---|---|
left | float | Lower-left X |
bottom | float | Lower-left Y |
right | float | Upper-right X |
top | float | Upper-right Y |
Quads
Each quad describes a four-point polygon around a text segment.
| Property | Type | Notes |
|---|---|---|
x1,y1 | double | Top-left corner |
x2,y2 | double | Top-right corner |
x3,y3 | double | Bottom-left corner |
x4,y4 | double | Bottom-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
| Property | Type | Notes |
|---|---|---|
color | string | Hex color string in #RRGGBB format |
width | integer | 1 - 20. See Requirements by Annotation Type |
opacity | double | 0.0 - 1.0. See Requirements by Annotation Type |
Content
| Property | Type | Notes |
|---|---|---|
comment | string | Max of 3700 characters. Supports linebreak characters. For freetext, this is the text placed on the page |
quotedText | string | Max of 3700 characters. Fixed data, not editable in the UI |
fixedLabel | string | Max of 120 characters. Fixed data, not editable in the UI |
Exceeding a limit returns a 400 Bad Request.
Reference Links
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.
| Property | Type | Notes |
|---|---|---|
documentUuid | string | Record ID of a DAM asset |
tagId | integer | Optional. Points the link at a specific tag within the reference document |
- Reference links work on all 13 annotation types and in all three contexts.
tagIdrequiresdocumentUuidon the same link. Otherwise the API returns400withtagId 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:
| Part | Content |
|---|---|
annotation | The annotation as JSON. Do not include file data in this part |
file | The file to attach. Exactly one file is required |
fileNamein theannotationpart is optional. If omitted, the uploaded file's name is used. File names cannot contain< > : " / \ | ? *.mimeTypeis optional. If omitted, the content type of the uploaded file is used.- File attachments cannot exceed 5 MB. A larger file returns
400with the messageFile 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:
| Property | Type | Notes |
|---|---|---|
annotationId | integer | ID of the annotation, unique within the host document |
authorId | integer | User ID of the creator |
associatedNumber | integer | Annotation number on the document |
createdDate | datetime | When the annotation was created |
modifiedDate | datetime | When the annotation was last modified |
type | string | One of the 13 supported types |
page | integer | Page number (0-indexed) |
geometry | object | Geometry details |
style | object | Style details |
content | object | Annotation content |
referenceLink | object | The first linked DAM asset, if any |
referenceLinks | array | All linked DAM assets, each with an optional tagId |
replyCount | integer | Number of replies (including status changes) |
collectionGuid | string | Collection routes only |
recordGuid | string | Collection and review-findings routes only |
versionGuid | string | Collection 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:
| Property | Source | Notes |
|---|---|---|
name | auto-generated GUID | Unique identifier |
subject | type of annotation | For example Rectangle, Highlight, or Underline |
creationdate | current datetime | When the annotation was created |
date | current datetime | When the annotation was created or edited |
flags | "print" | Fixed value |
dashes | "" | Fixed value |
Errors
| Status | When |
|---|---|
400 Bad Request | The 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 Forbidden | The user lacks the Integration API or System Administration access right, or lacks permission to the collection or record. |
404 Not Found | The 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.