Annotation

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

Path parameters

annotationIDinteger required

Annotation ID

Request body

return_urlstring uri

URL to redirect to after annotation is confirmed

cancel_urlstring uri

URL to redirect to when annotation is cancelled

delete_urlstring uri

URL to redirect to when annotation is deleted

postpone_urlstring uri

URL to redirect to when annotation is postponed

max_token_lifetime_snumber float

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

Example request

{
  "return_url": "https://service.com/return",
  "cancel_url": "https://service.com/cancel",
  "delete_url": "https://service.com/delete",
  "postpone_url": "https://service.com/postpone",
  "max_token_lifetime_s": 3600
}

Response

Embedded URL created successfully

urlstring uri

Embedded URL with authentication token

Example response

{
  "url": "https://example.rossum.app/embedded/document/12345#authToken=db313f24f5738c8e04635e036ec8a45cdd6d6b03"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.