OpenAPI SpecificationJSON
API Reference

Annotation

An annotation object contains all extracted and verified data related to a document. Every document belongs to a queue and is related to the schema object, that defines datapoint types and overall shape of the extracted data.

Commonly you need to use the upload endpoint to create annotation instances.

Sideloading

The annotations API supports efficient data fetching through sideloading. Add the sideload query parameter to include related objects in the response. This parameter accepts comma-separated list of keywords. The response is then enriched by the requested keys, which contain lists of the sideloaded objects.

GET /annotations?sideload=content,relations,assignees,labels

Available sideload options:

  • assignees - Users assigned to the annotation
  • automation_blockers - Automation blockers associated with the annotation
  • confirmed_bys - Users who confirmed the annotation
  • content - Annotation data (datapoints). Required: Must filter by content.schema_id=<id>
  • creators - Users who created the annotation
  • deleted_bys - Users who deleted the annotation
  • documents - Document details
  • emails - Email objects
  • exported_bys - Users who exported the annotation
  • labels - Applied labels
  • modifiers - Users who last modified the annotation
  • organizations - Organization objects
  • pages - Page objects
  • purged_bys - Users who purged the annotation
  • queues - Queue objects
  • rejected_bys - Users who rejected the annotation
  • related_emails - Related email objects
  • relations - Related annotations (parent/child from splits)
  • child_relations - Child relations for split annotations
  • schemas - Schema objects
  • suggested_edits - Suggested edits for the annotation
  • workflow_runs - Workflow details
  • workspaces - Workspace objects

Sideloaded content can be filtered by schema_id to obtain only a subset of datapoints in content part of response, but is a deprecated feature and will be removed in the future. Filter on content can be specified using query parameter content.schema_id that accepts comma-separated list of required schema_ids.

Example with filtering:

GET /annotations?sideload=content&content.schema_id=123&status=to_review

Query Field Filtering

Filter annotations by specific field values using query parameters:

GET /annotations?queue=<queue_url>&status=to_review&modifier=<user_url>

Common filters:

  • queue - Filter by queue URL
  • status - Filter by status (can specify multiple: status=to_review,reviewing)
  • modifier - Filter by user who last modified
  • document__arrived_at_before / document__arrived_at_after - Date range filtering
  • ordering - Sort results (e.g., -created_at for descending)

Key Relationships

  • Document: Every annotation is linked to exactly one document containing the original file and pages
  • Queue: Defines the workflow, schema, and processing rules for the annotation
  • Schema: Defines the structure and datapoint types for extracted data
  • Content (DataPoints): The actual extracted and validated data values
  • Relations: Links to parent/child annotations (for split documents) or related annotations
  • Assignees: Users assigned to review the annotation
  • Labels: Tags for categorization and filtering

Annotation

Attribute
Type
Description
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true

List annotations

Retrieve all annotation objects.

GET
/api/v1/annotations
curl -X GET "https://example.rossum.app/api/v1/annotations"
{
  "pagination": {
    "next": null,
    "previous": null
  },
  "results": [
    {
      "id": 314528,
      "url": "https://example.rossum.app/api/v1/annotations/314159",
      "status": "to_review",
      "document": "string",
      "queue": "string",
      "schema": "https://example.rossum.app/api/v1/schemas/31336",
      "relations": [],
      "pages": [
        "https://example.rossum.app/api/v1/pages/558598"
      ],
      "creator": "https://example.rossum.app/api/v1/users/10775",
      "created_at": "2021-04-26T10:08:03.856648Z",
      "modifier": null,
      "modified_by": "https://example.rossum.app/api/v1/users/10775",
      "modified_at": "2021-04-26T10:08:03.856648Z",
      "assigned_at": null,
      "confirmed_at": null,
      "deleted_at": null,
      "exported_at": null,
      "export_failed_at": null,
      "purged_at": null,
      "rejected_at": null,
      "confirmed_by": null,
      "deleted_by": null,
      "exported_by": null,
      "purged_by": null,
      "rejected_by": null,
      "rir_poll_id": "54f6b9ecfa751789f71ddf12",
      "messages": null,
      "content": "https://example.rossum.app/api/v1/annotations/314159",
      "suggested_edit": null,
      "time_spent": 0,
      "metadata": {
        "some_key": "some_value"
      },
      "automated": false,
      "related_emails": [],
      "email": "https://example.rossum.app/api/v1/emails/1234",
      "automation_blocker": null,
      "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
      "has_email_thread_with_replies": true,
      "has_email_thread_with_new_replies": false,
      "organization": "string",
      "automatically_rejected": false,
      "prediction": null,
      "assignees": [
        "https://example.rossum.app/api/v1/users/1",
        "https://example.rossum.app/api/v1/users/2"
      ],
      "labels": [],
      "restricted_access": false,
      "training_enabled": true
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
pagination*
pagination
next
URL

URL for the next page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the next page — do not attempt to construct or modify the cursor value.

previous
URL

URL for the previous page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the previous page — do not attempt to construct or modify the cursor value.

results*
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Create annotation

Create an annotation object.

Normally you create annotations via the upload endpoint.

This endpoint could be used for creating annotation instances including their content and with status set to an explicitly requested value. Currently only created is supported which is not touched by the rest of the platform and is not visible via the Rossum UI. This allows for subsequent updates before switching the status to importing so that it is passed through the rest of the upload pipeline.

The use-case for this is the upload.created hook event where new annotations could be created and the platform runtime then switches all such annotations' status to importing.

POST
/api/v1/annotations
curl -X POST "https://example.rossum.app/api/v1/annotations" \  -H "Content-Type: application/json" \  -d '{    "status": "to_review",    "document": "string",    "queue": "string"  }'
{
  "id": 314528,
  "url": "https://example.rossum.app/api/v1/annotations/314159",
  "status": "to_review",
  "document": "string",
  "queue": "string",
  "schema": "https://example.rossum.app/api/v1/schemas/31336",
  "relations": [],
  "pages": [
    "https://example.rossum.app/api/v1/pages/558598"
  ],
  "creator": "https://example.rossum.app/api/v1/users/10775",
  "created_at": "2021-04-26T10:08:03.856648Z",
  "modifier": null,
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z",
  "assigned_at": null,
  "confirmed_at": null,
  "deleted_at": null,
  "exported_at": null,
  "export_failed_at": null,
  "purged_at": null,
  "rejected_at": null,
  "confirmed_by": null,
  "deleted_by": null,
  "exported_by": null,
  "purged_by": null,
  "rejected_by": null,
  "rir_poll_id": "54f6b9ecfa751789f71ddf12",
  "messages": null,
  "content": "https://example.rossum.app/api/v1/annotations/314159",
  "suggested_edit": null,
  "time_spent": 0,
  "metadata": {
    "some_key": "some_value"
  },
  "automated": false,
  "related_emails": [],
  "email": "https://example.rossum.app/api/v1/emails/1234",
  "automation_blocker": null,
  "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
  "has_email_thread_with_replies": true,
  "has_email_thread_with_new_replies": false,
  "organization": "string",
  "automatically_rejected": false,
  "prediction": null,
  "assignees": [
    "https://example.rossum.app/api/v1/users/1",
    "https://example.rossum.app/api/v1/users/2"
  ],
  "labels": [],
  "restricted_access": false,
  "training_enabled": true
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema
URL

A schema that defines content shape.

relations
deprecated
list[URL]

List of relations that annotation belongs to.

modifier
URL

User that last modified the annotation.

rir_poll_id
string | null

Internal identifier used by Rossum.

messages
array | null

List of messages from the connector (save).

Default: []
time_spent
number (float)

Total time spent while validating the annotation.

Default: 0
metadata
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated
boolean

Whether annotation was automated

Default: false
organization
URL

Organization URL.

training_enabled
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true

Response

201Created

Created

Attribute
Type
Description
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Retrieve annotation

Get an annotation object.

GET
/api/v1/annotations/{annotationID}
curl -X GET "https://example.rossum.app/api/v1/annotations/0"
{
  "id": 314528,
  "url": "https://example.rossum.app/api/v1/annotations/314159",
  "status": "to_review",
  "document": "string",
  "queue": "string",
  "schema": "https://example.rossum.app/api/v1/schemas/31336",
  "relations": [],
  "pages": [
    "https://example.rossum.app/api/v1/pages/558598"
  ],
  "creator": "https://example.rossum.app/api/v1/users/10775",
  "created_at": "2021-04-26T10:08:03.856648Z",
  "modifier": null,
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z",
  "assigned_at": null,
  "confirmed_at": null,
  "deleted_at": null,
  "exported_at": null,
  "export_failed_at": null,
  "purged_at": null,
  "rejected_at": null,
  "confirmed_by": null,
  "deleted_by": null,
  "exported_by": null,
  "purged_by": null,
  "rejected_by": null,
  "rir_poll_id": "54f6b9ecfa751789f71ddf12",
  "messages": null,
  "content": "https://example.rossum.app/api/v1/annotations/314159",
  "suggested_edit": null,
  "time_spent": 0,
  "metadata": {
    "some_key": "some_value"
  },
  "automated": false,
  "related_emails": [],
  "email": "https://example.rossum.app/api/v1/emails/1234",
  "automation_blocker": null,
  "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
  "has_email_thread_with_replies": true,
  "has_email_thread_with_new_replies": false,
  "organization": "string",
  "automatically_rejected": false,
  "prediction": null,
  "assignees": [
    "https://example.rossum.app/api/v1/users/1",
    "https://example.rossum.app/api/v1/users/2"
  ],
  "labels": [],
  "restricted_access": false,
  "training_enabled": true
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Partial update annotation

Update part of annotation object.

One can be tempted by patching the status of the annotation to the confirmed or exported state. However, patching status skips key annotation metadata updates which negatively affects the Dedicated AI Engine training. Use the confirm endpoint for switching annotation to the confirmed or exported state.

Please be aware that annotation status cannot be manually set to purged. Use the purge deleted endpoint. Also note, that once annotation has purged status, it cannot be changed anymore.

PATCH
/api/v1/annotations/{annotationID}
curl -X PATCH "https://example.rossum.app/api/v1/annotations/0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": 314528,
  "url": "https://example.rossum.app/api/v1/annotations/314159",
  "status": "to_review",
  "document": "string",
  "queue": "string",
  "schema": "https://example.rossum.app/api/v1/schemas/31336",
  "relations": [],
  "pages": [
    "https://example.rossum.app/api/v1/pages/558598"
  ],
  "creator": "https://example.rossum.app/api/v1/users/10775",
  "created_at": "2021-04-26T10:08:03.856648Z",
  "modifier": null,
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z",
  "assigned_at": null,
  "confirmed_at": null,
  "deleted_at": null,
  "exported_at": null,
  "export_failed_at": null,
  "purged_at": null,
  "rejected_at": null,
  "confirmed_by": null,
  "deleted_by": null,
  "exported_by": null,
  "purged_by": null,
  "rejected_by": null,
  "rir_poll_id": "54f6b9ecfa751789f71ddf12",
  "messages": null,
  "content": "https://example.rossum.app/api/v1/annotations/314159",
  "suggested_edit": null,
  "time_spent": 0,
  "metadata": {
    "some_key": "some_value"
  },
  "automated": false,
  "related_emails": [],
  "email": "https://example.rossum.app/api/v1/emails/1234",
  "automation_blocker": null,
  "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
  "has_email_thread_with_replies": true,
  "has_email_thread_with_new_replies": false,
  "organization": "string",
  "automatically_rejected": false,
  "prediction": null,
  "assignees": [
    "https://example.rossum.app/api/v1/users/1",
    "https://example.rossum.app/api/v1/users/2"
  ],
  "labels": [],
  "restricted_access": false,
  "training_enabled": true
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
status
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document
URL

Related document.

queue
URL

A queue that annotation belongs to.

schema
URL

A schema that defines content shape.

relations
deprecated
list[URL]

List of relations that annotation belongs to.

modifier
URL

User that last modified the annotation.

rir_poll_id
string | null

Internal identifier used by Rossum.

messages
array | null

List of messages from the connector (save).

Default: []
time_spent
number (float)

Total time spent while validating the annotation.

Default: 0
metadata
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated
boolean

Whether annotation was automated

Default: false
organization
URL

Organization URL.

training_enabled
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Update annotation

Update annotation object.

PUT
/api/v1/annotations/{annotationID}
curl -X PUT "https://example.rossum.app/api/v1/annotations/0" \  -H "Content-Type: application/json" \  -d '{    "document": "string",    "queue": "string"  }'
{
  "id": 314528,
  "url": "https://example.rossum.app/api/v1/annotations/314159",
  "status": "to_review",
  "document": "string",
  "queue": "string",
  "schema": "https://example.rossum.app/api/v1/schemas/31336",
  "relations": [],
  "pages": [
    "https://example.rossum.app/api/v1/pages/558598"
  ],
  "creator": "https://example.rossum.app/api/v1/users/10775",
  "created_at": "2021-04-26T10:08:03.856648Z",
  "modifier": null,
  "modified_by": "https://example.rossum.app/api/v1/users/10775",
  "modified_at": "2021-04-26T10:08:03.856648Z",
  "assigned_at": null,
  "confirmed_at": null,
  "deleted_at": null,
  "exported_at": null,
  "export_failed_at": null,
  "purged_at": null,
  "rejected_at": null,
  "confirmed_by": null,
  "deleted_by": null,
  "exported_by": null,
  "purged_by": null,
  "rejected_by": null,
  "rir_poll_id": "54f6b9ecfa751789f71ddf12",
  "messages": null,
  "content": "https://example.rossum.app/api/v1/annotations/314159",
  "suggested_edit": null,
  "time_spent": 0,
  "metadata": {
    "some_key": "some_value"
  },
  "automated": false,
  "related_emails": [],
  "email": "https://example.rossum.app/api/v1/emails/1234",
  "automation_blocker": null,
  "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
  "has_email_thread_with_replies": true,
  "has_email_thread_with_new_replies": false,
  "organization": "string",
  "automatically_rejected": false,
  "prediction": null,
  "assignees": [
    "https://example.rossum.app/api/v1/users/1",
    "https://example.rossum.app/api/v1/users/2"
  ],
  "labels": [],
  "restricted_access": false,
  "training_enabled": true
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
status
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema
URL

A schema that defines content shape.

relations
deprecated
list[URL]

List of relations that annotation belongs to.

modifier
URL

User that last modified the annotation.

rir_poll_id
string | null

Internal identifier used by Rossum.

messages
array | null

List of messages from the connector (save).

Default: []
time_spent
number (float)

Total time spent while validating the annotation.

Default: 0
metadata
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated
boolean

Whether annotation was automated

Default: false
organization
URL

Organization URL.

training_enabled
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Approve annotation

Approve annotation, switch its status to exporting or confirmed, or it stays in in_workflow, depending on the evaluation of the current workflow step

Approving is allowed only for documents in states: in_workflow. See Annotation Lifecycle for more information about states.

Only admin, organization group admin, or an assigned user with approver role can approve annotation in this state. A workflow activity record object will be created.

Talk with a Rossum representative about enabling this feature. Read more about workflows

POST
/api/v1/annotations/{annotationID}/approve
curl -X POST "https://example.rossum.app/api/v1/annotations/0/approve" \  -H "Content-Type: application/json" \  -d '{}'
{
  "status": "confirmed"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

bodyobject

Response

200OK

OK

Attribute
Type
Description
status
string

New status of the annotation.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Change assignees of the annotation.

admin and organization_group_admin user roles can assign to arbitrary set of users. The rest of the roles can only swap themselves for a different user (without changing the others).

POST
/api/v1/annotations/assign
curl -X POST "https://example.rossum.app/api/v1/annotations/assign" \  -H "Content-Type: application/json" \  -d '{    "annotations": [      "https://example.rossum.app/api/v1/annotations/319668"    ],    "assignees": [      "https://example.rossum.app/api/v1/users/1",      "https://example.rossum.app/api/v1/users/2"    ]  }'
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
annotations*
list[URL]

List of annotations to change the assignees of (currently we support only one annotation at a time).

assignees*
beta
list[URL]

List of users to be added as annotation assignees.

note_content
string

Content of the note that will be added to the workflow activity of action reassign (only applicable for annotation in in_workflow state).

Default: ""

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Cancel edit pages session

Cancels an edit pages session, stopping review on specified child annotations and optionally the parent.

POST
/api/v1/annotations/{annotationID}/edit_pages/cancel
curl -X POST "https://example.rossum.app/api/v1/annotations/0/edit_pages/cancel" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
annotations
list[URL]

Child annotations to cancel (stop reviewing). Must be in the reviewing state.

cancel_parent
boolean

Whether to also cancel the parent annotation

Default: true

Response

204No Content

Edit pages session cancelled successfully

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Cancel validation

Cancel annotation, switch its status back to to_review or postponed.

Annotation with the status exporting or exported cannot be cancelled. To send an exported annotation back to any previous status, update the annotation status appropriately instead or enable the confirmed state for the particular queue in your workflow instead.

POST
/api/v1/annotations/{annotationID}/cancel
curl -X POST "https://example.rossum.app/api/v1/annotations/0/cancel"
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Switch to deleted

Switch annotation status to deleted. Annotation with status deleted is still available in Rossum UI.

POST
/api/v1/annotations/{annotationID}/delete
curl -X POST "https://example.rossum.app/api/v1/annotations/0/delete"
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Confirm validation

Confirm annotation, switch status to exported (or exporting). If the confirmed state is enabled, this call moves the annotation to the confirmed status.

The confirm call is the right choice when confirming correctly captured data and switching the annotations to confirmed or exported state. One can be tempted by patching the status of the annotation to the confirmed or exported state. However, patching status skips key annotation metadata updates which negatively affects the Dedicated AI Engine training.

POST
/api/v1/annotations/{annotationID}/confirm
curl -X POST "https://example.rossum.app/api/v1/annotations/0/confirm" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
skip_workflows
boolean

Whether to skip workflows evaluation. Read more about workflows here

The bypass_workflows_allowed must be set to true in workflows queue settings in order to use this feature.

Default: false

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Copy annotation

Make a copy of annotation in another queue. All data and metadata are copied.

If you want to directly reimport the copied annotation, you can use reimport=true query parameter (such annotation will be billed).

POST
/api/v1/annotations/{annotationID}/copy
curl -X POST "https://example.rossum.app/api/v1/annotations/0/copy" \  -H "Content-Type: application/json" \  -d '{    "target_queue": "https://example.rossum.app/api/v1/queues/8236"  }'
{
  "annotation": "https://example.rossum.app/api/v1/annotations/320332"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
target_queue*
URL

URL of queue where the copy should be placed.

target_status
string

The status of copied annotation (if not set, it stays the same).

Response

200OK

OK

Attribute
Type
Description
annotation*
URL

URL of the new annotation object.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Create embedded URL

Similar to start embedded annotation endpoint but can be called for annotations with all statuses and does not switch status.

Embedded annotation cannot be started by users with admin or organization group admin roles. We strongly recommend creating embedded URLs by users with annotator_embedded user role and permissions for the given queue only to limit the scope of actions that user is able to perform to required minimum.

POST
/api/v1/annotations/{annotationID}/create_embedded_url
curl -X POST "https://example.rossum.app/api/v1/annotations/0/create_embedded_url" \  -H "Content-Type: application/json" \  -d '{}'
{
  "url": "https://example.rossum.app/embedded/document/12345#authToken=db313f24f5738c8e04635e036ec8a45cdd6d6b03",
  "status": "to_review"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
return_url
URL

URL to redirect to after annotation is confirmed

maxLength: 2048
cancel_url
URL

URL to redirect to when annotation is cancelled

maxLength: 2048
delete_url
URL

URL to redirect to when annotation is deleted

maxLength: 2048
postpone_url
URL

URL to redirect to when annotation is postponed

maxLength: 2048
max_token_lifetime_s
number (float)

Duration (in seconds) for which the token will be valid. The default is the queue's session_timeout).

min: 0, max: 583200

Response

200OK

Embedded URL created successfully

Attribute
Type
Description
url
URL

URL to be used in the browser iframe/popup window. URL includes a token that is valid for this document only for a limited period of time.

status
string

Status of annotation, see annotation lifecycle

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Edit annotation (legacy split)

Legacy endpoint for splitting annotations. Creates new annotations from the original annotation's pages.

This is a legacy endpoint. For new implementations, use the split endpoint instead, which provides the same functionality with a clearer name.

If used on an annotation in a way that after the editing only one document remains, the original annotation will be edited. If multiple documents are to be created after the call, status of the original annotation is switched to split, status of the newly created annotations is importing and the extraction phase begins over again.

POST
/api/v1/annotations/{annotationID}/edit
curl -X POST "https://example.rossum.app/api/v1/annotations/0/edit" \  -H "Content-Type: application/json" \  -d '{    "documents": [      {        "pages": [          {            "page": "https://example.rossum.app/api/v1/pages/12345"          }        ]      }    ]  }'
{
  "results": [
    {
      "annotation": "https://example.rossum.app/api/v1/annotations/67890",
      "document": "string"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
documents*
list[object]

Array of documents to create

pages*
list[object]

Pages to include in this document

page*
URL

Page URL

rotation_deg
0 | 90 | 180 | 270

Rotation to apply in degrees

deleted
boolean

Indicates whether the page is marked as deleted.

Default: false
metadata
object

Metadata will be saved in created/edited annotation/document metadata.

annotation
object
document
object

Response

200OK

Annotation edited successfully

Attribute
Type
Description
results
list[object]

Created or modified annotations

annotation
URL

Annotation URL

document
URL

Document URL

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Edit pages (split and reorganize)

Edit document pages, split and re-split already split document.

When using this endpoint, status of the original annotation (when not editing existing split) is switched to split, status of the newly created annotations is importing and the extraction phase begins over again.

This endpoint can be used for splitting annotations also from webhook listening to annotation_content.initialize event and action.

Operations:

  • edit: Create new annotations from parent pages with optional rotation and values
  • move: Move existing child annotations — or the annotation itself — to different queues
  • delete: Delete child annotations — or the annotation itself
  • stop_reviewing: Stop review on child annotations without deleting

When move or delete targets the annotation itself, no other operations (edit, additional move/delete entries) are allowed in the same request.

POST
/api/v1/annotations/{annotationID}/edit_pages
curl -X POST "https://example.rossum.app/api/v1/annotations/0/edit_pages" \  -H "Content-Type: application/json" \  -d '{}'
{
  "results": [
    {
      "annotation": "https://example.rossum.app/api/v1/annotations/67890",
      "document": "string"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
edit
list[object]

Create new annotations from parent pages

parent_pages
list[object]

List of parent pages with rotation.

page*
URL

Page URL

rotation_deg
0 | 90 | 180 | 270

Rotation to apply in degrees

deleted
boolean

Indicates whether the page is marked as deleted.

Default: false
target_queue
URL

Target queue URL. When not provided, the new annotation is imported into the same queue as the parent annotation.

metadata
object

Metadata will be saved in created/edited annotation/document metadata.

annotation
object
document
object
values
object

Values to be propagated to newly created annotations. Keys must be prefixed with "edit:", e.g. "edit:document_type".

document_name
string

Name for the newly created document. When not provided, generated automatically.

annotation
URL

Annotation URL

move
list[object]

Move child annotations to different queues. May also reference the annotation itself (in that case, no other operations are allowed in the request).

annotation*
URL

Child annotation to move. May also be the annotation itself.

target_queue*
URL

Target queue URL

delete
list[URL]

Annotations to delete. May contain child annotations, or the annotation itself (in that case, no other operations are allowed in the request).

stop_reviewing
list[URL]

Child annotations to stop reviewing. Must be in reviewing state.

stop_parent
boolean

Whether to stop reviewing the parent annotation

Default: true

Response

200OK

Edit pages operation completed successfully

Attribute
Type
Description
results
list[object]

Created or modified annotations

annotation
URL

Annotation URL

document
URL

Document URL

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Edit pages in place

Edits pages of an annotation in place by reordering, rotating, or removing pages without creating new annotations.

Unlike the edit_pages endpoint which creates new child annotations, this endpoint modifies the existing annotation directly.

This endpoint can be used for the embedded mode.

POST
/api/v1/annotations/{annotationID}/edit_pages/in_place
curl -X POST "https://example.rossum.app/api/v1/annotations/0/edit_pages/in_place" \  -H "Content-Type: application/json" \  -d '{    "parent_pages": [      {        "page": "https://example.rossum.app/api/v1/pages/12345"      }    ]  }'
{
  "results": [
    {
      "annotation": "https://example.rossum.app/api/v1/annotations/67890",
      "document": "string"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
parent_pages*
list[object]

List of parent pages with rotation.

page*
URL

Page URL

rotation_deg
0 | 90 | 180 | 270

Rotation to apply in degrees

deleted
boolean

Indicates whether the page is marked as deleted.

Default: false
target_queue
URL

Target queue URL. When not provided, the annotation stays in its current queue.

metadata
object

Metadata will be saved in created/edited annotation/document metadata.

annotation
object
document
object

Response

200OK

Pages edited successfully

Attribute
Type
Description
results
list[object]

Created or modified annotations

annotation
URL

Annotation URL

document
URL

Document URL

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Purge deleted annotations

Start the asynchronous process of purging customer's data related to selected annotations with deleted status. The following operations will happen:

This is an asynchronous endpoint, status of annotations is changed to purged and related objects are gradually being deleted.

At least one of annotations, queue fields must be filled in. The resulting set of annotations is the disjunction of queue and annotations filter.

POST
/api/v1/annotations/purge_deleted
curl -X POST "https://example.rossum.app/api/v1/annotations/purge_deleted" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
annotations
list[URL]

List of annotations to be purged.

queue
URL

Queue of which the annotations should be purged.

Response

202

Accepted

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Reject annotation

Reject annotation, switch its status to rejected.

Rejection is allowed only for documents in states: to_review, reviewing, postponed, in_workflow, exported. See Document Lifecycle for more information about states.

If rejecting in in_workflow state, the annotation.workflow_run.workflow_status will also be set to rejected and a workflow activity record object will be created. Only admin, organization group admin, or an assigned user can approve annotation in this state.

Talk with a Rossum representative about enabling this feature. Read more about workflows here

POST
/api/v1/annotations/{annotationID}/reject
curl -X POST "https://example.rossum.app/api/v1/annotations/0/reject" \  -H "Content-Type: application/json" \  -d '{}'
{
  "status": "rejected",
  "note": "https://example.rossum.app/api/v1/notes/3"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
note_content
string

Rejection note.

Default: ""
automatically_rejected
boolean

Designates whether annotation is displayed as automatically rejected in the statistics.

Default: false

Response

200OK

OK

Attribute
Type
Description
status
string

New status of the annotation (rejected).

note
URL

Link to Note object.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Retrieve page spatial data

Get text content for every page, including position coordinates, considering granularity options like lines, words, characters, or complete page text content.

GET
/api/v1/annotations/{annotationID}/page_data
curl -X GET "https://example.rossum.app/api/v1/annotations/0/page_data?granularity=words"
{
  "results": [
    {
      "page_number": 1,
      "granularity": "words",
      "items": [
        {
          "text": "Invoice",
          "position": [
            100,
            50,
            150,
            20
          ],
          "type": "string"
        }
      ]
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

Spatial data retrieved successfully

Attribute
Type
Description
results
list[object]

Array of page results

page_number
integer

Page number

granularity
string

Granularity level of the data

items
list[object]

Text items with spatial data

text
string

Extracted text content

position
list[integer]

Coordinates of the item on the given page. In case of texts granularity, the result items objects are missing position key, since the text value is the full page text.

type
string

Type of barcode. This value is present only for granularity barcodes.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Export annotations (cross-queue, GET)

Export annotations across multiple queues in XML, CSV, JSON or XLSX format. Output format is negotiated by Accept header or format parameter. Supported formats are: csv, xml, xlsx and json. A hard limit of 500 annotations is imposed. Annotations to export must be specified via the id query parameter (comma-separated annotation IDs).

For queue-based export, refer to the queue export endpoint.

GET
/api/v1/annotations/export
curl -X GET "https://example.rossum.app/api/v1/annotations/export"
{}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

responseobject
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Export annotations (cross-queue, POST)

Export annotations across multiple queues in XML, CSV, JSON or XLSX format. Supported formats are: csv, xml, xlsx and json. A hard limit of 500 annotations is imposed. Annotations to export should be provided either via the id query parameter (comma-separated annotation IDs) or in the request body as a list of annotation URLs.

For queue-based export, refer to the queue export endpoint.

POST
/api/v1/annotations/export
curl -X POST "https://example.rossum.app/api/v1/annotations/export" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
annotations
list[URL]

List of URLs of annotations to export.

Response

200OK

OK

responseobject
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Retrieve suggested email recipients

Retrieves annotations suggested email recipients depending on Queue suggested recipients settings.

POST
/api/v1/annotations/suggested_recipients
curl -X POST "https://example.rossum.app/api/v1/annotations/suggested_recipients" \  -H "Content-Type: application/json" \  -d '{    "annotations": [      "https://example.rossum.app/api/v1/annotations/314528",      "https://example.rossum.app/api/v1/annotations/314529"    ]  }'
{
  "results": [
    {
      "source": "email_header",
      "email": "user@example.com",
      "name": "Don Joe"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
annotations*
list[URL]

List of annotation URLs.

Response

200OK

OK

Attribute
Type
Description
results
list[object]
source
string

Specifies where the email is found.

email
string (email)

Email address of the suggested recipient.

name
string

Name of the suggested recipient. Either a value from an email header or a value from parsing the email address.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Rotate annotation

Rotate a document.

Status of the annotation is switched to importing and the extraction phase begins over again. After the new extraction, the value from rotation_deg field is copied to pages rotation field rotation_deg.

The original pages in the annotation are replaced by new pages after the extraction phase is done.

POST
/api/v1/annotations/{annotationID}/rotate
curl -X POST "https://example.rossum.app/api/v1/annotations/0/rotate" \  -H "Content-Type: application/json" \  -d '{    "rotation_deg": 0  }'
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
rotation_deg*
0 | 90 | 180 | 270

States degrees by which the document shall be rotated.

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Search annotations

Search for annotations matching a complex filter.

Please beware that updates of the annotation search data are done asynchronously and are eventually consistent. Search endpoint may return inconsistent results temporarily (for a few seconds).

Please note that only objects of category datapoint are returned when sideloading for content is active. Objects of other categories are ignored.

Sideloading content for this endpoint is deprecated and will be removed in the near future.

Search Query

A subset of MongoDB Query Language. Query expressions should be defined as a list under a $and key. The following can be used:

  • <meta_field> - Matches against annotation attributes according to the <meta_field> - see options below.
  • field.<schema_id>.<type> - Matches against annotation content value according to <schema_id> treating it as a <type>. Possible types: string | number | date (in ISO 8601 format). Max. 256 characters long strings are allowed.

The meta_field can be one of:

Meta FieldType
annotationURL
arrived_atdate
assigned_atdate
assigneesURL
automatedbool
automatically_rejectedbool
confirmed_atdate
confirmed_by__usernamestring
confirmed_byURL
created_atdate
creator__usernamestring
creatorURL
deleted_atdate
deleted_by__usernamestring
deleted_byURL
documentURL
exported_atdate
exported_by__usernamestring
exported_byURL
has_email_thread_with_new_repliesbool
has_email_thread_with_repliesbool
has_notebool
labelsURL
messagesstring
modified_atdate
modifier__usernamestring
modifierURL
original_file_namestring
purged_atdate
purged_by__usernamestring
purged_byURL
queueURL
rejected_atdate
rejected_by__usernamestring
rejected_byURL
relations__keystring
relations__parentURL
relations__typestring
restricted_accessbool
rir_poll_idstring
statusstring
workspaceURL
email_threadURL
email_senderstring

Search Query Objects

KeyTypeDescription
$startsWithstringMatches the start of a value. Must be at least 2 characters long.
$anyTokenStartsWithstringMatches the start of each token within a string. Must be at least 2 characters long.
$containsPrefixesstringSame as $anyTokenStartsWith but query is split into tokens (words). Must be at least 2 characters long. Example query quick brown matches quick brown fox but also brown quick dog or quickiest brown fox, but not quick dog.
$emptyOrMissingboolMatches values that are empty or missing. When false, matches existing non-empty values.
$eq | $nenumber | string | date | URLDefault MQL behavior
$gt | $lt | $gte | $ltenumber | string | dateDefault MQL behavior
$in | $ninlist[number | string | URL]Default MQL behavior
POST
/api/v1/annotations/search
curl -X POST "https://example.rossum.app/api/v1/annotations/search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "total": 1,
    "total_pages": 1,
    "next": null,
    "previous": null
  },
  "results": [
    {
      "id": 314528,
      "url": "https://example.rossum.app/api/v1/annotations/314159",
      "status": "to_review",
      "document": "string",
      "queue": "string",
      "schema": "https://example.rossum.app/api/v1/schemas/31336",
      "relations": [],
      "pages": [
        "https://example.rossum.app/api/v1/pages/558598"
      ],
      "creator": "https://example.rossum.app/api/v1/users/10775",
      "created_at": "2021-04-26T10:08:03.856648Z",
      "modifier": null,
      "modified_by": "https://example.rossum.app/api/v1/users/10775",
      "modified_at": "2021-04-26T10:08:03.856648Z",
      "assigned_at": null,
      "confirmed_at": null,
      "deleted_at": null,
      "exported_at": null,
      "export_failed_at": null,
      "purged_at": null,
      "rejected_at": null,
      "confirmed_by": null,
      "deleted_by": null,
      "exported_by": null,
      "purged_by": null,
      "rejected_by": null,
      "rir_poll_id": "54f6b9ecfa751789f71ddf12",
      "messages": null,
      "content": "https://example.rossum.app/api/v1/annotations/314159",
      "suggested_edit": null,
      "time_spent": 0,
      "metadata": {
        "some_key": "some_value"
      },
      "automated": false,
      "related_emails": [],
      "email": "https://example.rossum.app/api/v1/emails/1234",
      "automation_blocker": null,
      "email_thread": "https://example.rossum.app/api/v1/email_threads/456",
      "has_email_thread_with_replies": true,
      "has_email_thread_with_new_replies": false,
      "organization": "string",
      "automatically_rejected": false,
      "prediction": null,
      "assignees": [
        "https://example.rossum.app/api/v1/users/1",
        "https://example.rossum.app/api/v1/users/2"
      ],
      "labels": [],
      "restricted_access": false,
      "training_enabled": true,
      "has_note": false
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
Empty
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
query
object

A subset of MongoDB Query Language. If query_string is used together with query, search is done as a conjunction of these expressions (query_string AND query).

$and
list[object]

List of query definitions to be used for search. See Search Query section for more details.

query_string
object

Apply full-text search to datapoint values using a chosen term. The value is searched by its prefix, separately for each term separated by whitespace, in case-insensitive way. Special characters at the end of the strings are ignored. For example, when searching for a term Large drink, all of the following values passed would give a match: lar#, lar dri, dri. We search also in the non-extracted page data, if the data are available.

If query_string is used together with query, search is done as a conjunction of these expressions (query_string AND query).

string
string

String to be used for full-text search. At least 2 characters need to be passed to apply this search. Max. 256 characters long strings are allowed.

minLength: 2, maxLength: 256

Response

200OK

OK

Attribute
Type
Description
pagination*
pagination_with_total
total
integer

Total number of items.

total_pages
integer

Total number of pages.

next
URL

URL for the next page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the next page — do not attempt to construct or modify the cursor value.

previous
URL

URL for the previous page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the previous page — do not attempt to construct or modify the cursor value.

results*
list[annotation_search]
id*
read-only
integer

ID of the annotation.

url*
read-only
URL

URL of the annotation.

status*
"confirmed" | "created" | "deleted" | "exported" | "exporting" | "failed_export" | "failed_import" | "importing" | "in_workflow" | "postponed" | "purged" | "rejected" | "reviewing" | "split" | "to_review"

Status of the document, see Annotation Lifecycle for more details.

document*
URL

Related document.

queue*
URL

A queue that annotation belongs to.

schema*
URL

A schema that defines content shape.

relations*
deprecated
list[URL]

List of relations that annotation belongs to.

pages*
read-only
list[URL]

List of rendered pages

creator*
read-only
URL

User that created the object.

created_at*
read-only
datetime

Timestamp of object's creation.

modifier*
URL

User that last modified the annotation.

modified_by*
read-only
URL

User that last modified the object.

modified_at*
read-only
datetime

Timestamp of last modification.

assigned_at*
read-only
datetime

Timestamp of last assignment to a user or when the annotation was started being annotated.

confirmed_at*
read-only
datetime

Timestamp when the annotation was moved to status confirmed.

deleted_at*
read-only
datetime

Timestamp when the annotation was moved to status deleted.

exported_at*
read-only
datetime

Timestamp of finished export.

export_failed_at*
read-only
datetime

Timestamp of failed export.

purged_at*
read-only
datetime

Timestamp when was annotation purged.

rejected_at*
read-only
datetime

Timestamp when the annotation was moved to status rejected.

confirmed_by*
read-only
URL

User that confirmed the annotation.

deleted_by*
read-only
URL

User that deleted the annotation.

exported_by*
read-only
URL

User that exported the annotation.

purged_by*
read-only
URL

User that purged the annotation.

rejected_by*
read-only
URL

User that rejected the annotation.

rir_poll_id*
string | null

Internal identifier used by Rossum.

messages*
array | null

List of messages from the connector (save).

Default: []
content*
read-only
URL

Link to annotation content (datapoint values), see Annotation Content

suggested_edit*
read-only
URL

Link to Suggested edit object.

time_spent*
number (float)

Total time spent while validating the annotation.

Default: 0
metadata*
object

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

Default: {}
automated*
boolean

Whether annotation was automated

Default: false
related_emails*
read-only
list[URL]

List of emails related with annotation.

email*
read-only
URL

Related email that the annotation was imported by (for annotations imported by email).

automation_blocker*
read-only
URL

Related automation blocker object.

email_thread*
read-only
URL

Related email thread object.

has_email_thread_with_replies
read-only
boolean

Related email thread contains more than one incoming email.

has_email_thread_with_new_replies
read-only
boolean

Related email thread contains an unread incoming email.

organization*
URL

Organization URL.

automatically_rejected*
read-only
boolean

Indicates whether the annotation was rejected automatically.

prediction*
read-only
object | null

Internal prediction data including engine version info.

assignees*
betaread-only
list[URL]

List of assigned users.

labels*
read-only
list[URL]

List of selected labels

restricted_access*
read-only
boolean

Access to annotation is restricted.

Default: false
training_enabled*
boolean

Flag signalling whether the annotation should be used in the training of the instant learning component.

Default: true
has_note*
read-only
boolean

Annotation has at least one note.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

410

Gone - Value of search_after is not valid anymore. Retry the search with a different value.

No response body.

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Search text

Search for a phrase in the document.

GET
/api/v1/annotations/{annotationID}/search
curl -X GET "https://example.rossum.app/api/v1/annotations/0/search?phrase=string"
{
  "results": [
    {
      "rectangle": [
        67.15157010915198,
        545.9286363906203,
        87.99106633081445,
        563.4617583852776
      ],
      "page": 1
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
results
list[object]
rectangle
list[number]

Bounding box of an occurrence.

page
integer

Page of occurrence.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Split annotation

Splits an annotation into multiple separate annotations by reorganizing and possibly also rotating its pages. Each resulting annotation will have its own document with the specified pages.

When using this endpoint, status of the original annotation is switched to split, status of the newly created annotations is importing and the extraction phase begins over again.

This endpoint can be used for splitting annotations also from webhook listening to annotation_content.initialize event and action.

POST
/api/v1/annotations/{annotationID}/split
curl -X POST "https://example.rossum.app/api/v1/annotations/0/split" \  -H "Content-Type: application/json" \  -d '{    "documents": [      {        "pages": [          {            "page": "https://example.rossum.app/api/v1/pages/12345"          }        ]      }    ]  }'
{
  "results": [
    {
      "annotation": "https://example.rossum.app/api/v1/annotations/67890",
      "document": "https://example.rossum.app/api/v1/documents/54321"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
documents*
list[object]

List of documents that should be created from the original annotation.

pages*
list[object]

List of pages to include in this document

page*
URL

URL reference to the page

rotation_deg
0 | 90 | 180 | 270

Rotation to apply to the page in degrees

metadata
object

Metadata will be saved in created/edited annotation/document metadata.

annotation
object
document
object

Response

200OK

Annotation split successfully

Attribute
Type
Description
results
list[object]
annotation
URL

URL of the created annotation

document
URL

URL of the created document.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Start edit pages session

Starts editing the annotation and all its child documents (the documents into which the original document was split). The parent annotation must be in the to_review, split or reviewing state (for the calling user). This call will "lock" the parent and child annotations from being edited.

It returns some basic information about the parent annotation and a list of its children. Children to which the current user does not have rights contains only limited information.

If the parent annotation cannot be "locked", an error is returned. If the child annotation cannot be locked, it is skipped and sent in a response with value started=False.

POST
/api/v1/annotations/{annotationID}/edit_pages/start
curl -X POST "https://example.rossum.app/api/v1/annotations/0/edit_pages/start"
{
  "parent_annotation": "https://example.rossum.app/api/v1/annotations/12345",
  "children": [
    {
      "parent_pages": [
        {
          "page": "https://example.rossum.app/api/v1/pages/12345",
          "rotation_deg": 90,
          "deleted": false
        }
      ],
      "queue": "https://example.rossum.app/api/v1/queues/8198",
      "status": "to_review",
      "url": "https://example.rossum.app/api/v1/annotations/67890",
      "original_file_name": "large_document.pdf",
      "values": {},
      "started": true
    }
  ],
  "session_timeout": "01:00:00"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

Edit pages session started successfully

Attribute
Type
Description
parent_annotation
URL

URL of the parent annotation

children
list[object]

List of child annotation objects

parent_pages
list[object]

Pages from parent used in this child

page*
URL

Page URL

rotation_deg
0 | 90 | 180 | 270

Rotation to apply in degrees

deleted
boolean

Indicates whether the page is marked as deleted.

Default: false
queue
URL

Queue URL for the child annotation

status
string | null

Current status of the child annotation

url
URL

URL of the child annotation

original_file_name
string

File name of the original document

values
object

Edit values to be propagated to newly created annotations. Keys must be prefixed with "edit:", e.g. "edit:document_type". Schema Datapoint description describes how it is used to initialize datapoint value.

started
boolean

Whether this child was started for review or not

session_timeout
string

Session timeout duration format "HH:MM:SS"

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Start validation

Start reviewing annotation by the calling user. Can be called with statuses payload to specify allowed statuses for starting annotation. Returns 409 Conflict if annotation fails to be in one of the specified states.

POST
/api/v1/annotations/{annotationID}/start
curl -X POST "https://example.rossum.app/api/v1/annotations/0/start" \  -H "Content-Type: application/json" \  -d '{}'
{
  "annotation": "https://example.rossum.app/api/v1/annotations/12345",
  "session_timeout": "01:00:00"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
statuses
list[string]

List of allowed states for the starting annotation to be in.

Default: ["to_review","reviewing","postponed","confirmed"]

Response

200OK

OK

Attribute
Type
Description
annotation
URL

URL of annotation.

session_timeout
string

Session timeout in format HH:MM:SS.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Start validation for embedded use

Start embedded annotation.

Embedded annotation cannot be started by users with admin or organization group admin roles. We strongly recommend starting embedded annotations by users with annotator_embedded user role and permissions for the given queue only to limit the scope of actions that user is able to perform to required minimum.

Returns object with url that specifies URL to be used in the browser iframe/popup window. URL includes a token that is valid for this document only for a limited period of time.

POST
/api/v1/annotations/{annotationID}/start_embedded
curl -X POST "https://example.rossum.app/api/v1/annotations/0/start_embedded" \  -H "Content-Type: application/json" \  -d '{}'
{
  "url": "https://example.rossum.app/embedded/document/12345#authToken=db313f24f5738c8e04635e036ec8a45cdd6d6b03"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
return_url
URL

URL to redirect to after annotation is confirmed

maxLength: 2048
cancel_url
URL

URL to redirect to when annotation is cancelled

maxLength: 2048
delete_url
URL

URL to redirect to when annotation is deleted

maxLength: 2048
postpone_url
URL

URL to redirect to when annotation is postponed

maxLength: 2048
max_token_lifetime_s
number (float)

Duration (in seconds) for which the token will be valid. Default is the queue's session_timeout.

min: 0, max: 604800

Response

200OK

Embedded URL created successfully

Attribute
Type
Description
url
URL

Embedded URL with authentication token

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Switch to postponed

Switch annotation status to postpone.

POST
/api/v1/annotations/{annotationID}/postpone
curl -X POST "https://example.rossum.app/api/v1/annotations/0/postpone"
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Translate page spatial data

Get translation for all lines on a page, including position coordinates. Source language of the page is automatically detected. Translated text of a page in a particular language is cached for 60 days.

Requirements:

  • Document translations feature must be enabled for the organization
  • User must have translate permissions
  • Page must have OCR data available

Supported languages:

KeyDescription
afAfrikaans
sqAlbanian
amAmharic
arArabic
hyArmenian
azAzerbaijani
bnBengali
bsBosnian
bgBulgarian
caCatalan
zhChinese (Simplified)
zh-TWChinese (Traditional)
hrCroatian
csCzech
daDanish
fa-AFDari
nlDutch
enEnglish
etEstonian
faFarsi (Persian)
tlFilipino, Tagalog
fiFinnish
frFrench
fr-CAFrench (Canada)
kaGeorgian
deGerman
elGreek
guGujarati
htHaitian Creole
haHausa
heHebrew
hiHindi
huHungarian
isIcelandic
idIndonesian
gaIrish
itItalian
jaJapanese
knKannada
kkKazakh
koKorean
lvLatvian
ltLithuanian
mkMacedonian
msMalay
mlMalayalam
mtMaltese
mrMarathi
mnMongolian
noNorwegian (Bokmål)
psPashto
plPolish
ptPortuguese (Brazil)
pt-PTPortuguese (Portugal)
paPunjabi
roRomanian
ruRussian
srSerbian
siSinhala
skSlovak
slSlovenian
soSomali
esSpanish
es-MXSpanish (Mexico)
swSwahili
svSwedish
taTamil
teTelugu
thThai
trTurkish
ukUkrainian
urUrdu
uzUzbek
viVietnamese
cyWelsh
POST
/api/v1/annotations/{annotationID}/page_data/translate
curl -X POST "https://example.rossum.app/api/v1/annotations/0/page_data/translate" \  -H "Content-Type: application/json" \  -d '{    "page_numbers": [      1    ],    "target_language": "es",    "granularity": "lines"  }'
{
  "results": [
    {
      "page_number": 1,
      "granularity": "lines",
      "items": [
        {
          "text": "Factura",
          "position": [
            100,
            50,
            150,
            20
          ]
        }
      ]
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
page_numbers*
list[integer]

Single page number to translate (currently only one page at a time is supported)

target_language*
"af" | "sq" | "am" | "ar" | "hy" | "az" | "bn" | "bs" | "bg" | "ca" | "zh" | "zh-TW" | "hr" | "cs" | "da" | "fa-AF" | "nl" | "en" | "et" | "fa" | "tl" | "fi" | "fr" | "fr-CA" | "ka" | "de" | "el" | "gu" | "ht" | "ha" | "he" | "hi" | "hu" | "is" | "id" | "ga" | "it" | "ja" | "kn" | "kk" | "ko" | "lv" | "lt" | "mk" | "ms" | "ml" | "mt" | "mr" | "mn" | "no" | "ps" | "pl" | "pt" | "pt-PT" | "pa" | "ro" | "ru" | "sr" | "si" | "sk" | "sl" | "so" | "es" | "es-MX" | "sw" | "sv" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "uz" | "vi" | "cy"

Target language code. Either ISO 639-1 format or a combination of ISO 639-1 two-digit language code followed by an underscore followed by an ISO 3166 2-digit country code.

minLength: 2, maxLength: 5
granularity*
"lines"

Level of text granularity

Response

200OK

Translation completed successfully (or retrieved from cache)

Attribute
Type
Description
results
list[object]
page_number
integer

Page number

granularity
string

Granularity level

items
list[object]

Translated text items with original positions

text
string

Translated text

position
list[integer]

Coordinates of the item on the given page

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error