Skip to main content
Execute a workflow action

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
actionId
integer
required

Identifier of the action to execute. Only the actions the workflow definition offers in the document's current state can be used.

Required range: x >= 0
Example:

3

id
string
required

Identifier of the document to act on.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

addMentionRights
boolean

Gives every user mentioned in comment read access to the document, so a person can be pulled into the discussion even when the document was never shared with them. Without it, only users who can already read the document are recognized as mentions. Together with isPublicComment it also sends a view share to mentioned e-mail addresses that have no access yet.

annotations
object[]

Annotations to draw into the document while the action runs.

comment
string

Comment recorded in the document history together with the action. An action may require one or refuse one, as its workflow definition declares. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

groupReceiver
string[]

Groups the document is handed over to. Every member of such a group finds it in their inbox and any one of them may take the next action.

Example:
images
object[]

Images to embed into the document while the action runs.

isPublicComment
boolean
default:false

Makes comment part of the history that external recipients of the document see. A comment left private stays visible only to internal users with access to the document.

Example:

false

signatures
object[]

Signatures to apply to the document while the action runs. An action declared as a signing action needs at least one.

signatureType
enum<string>

Whether the signatures of this action are cryptographic signatures carrying a visual representation, or a visual representation only. The document keeps the type its first signature established and a later action cannot switch it.

Available options:
signature,
image
signFields
object[]

Sign fields to place into the document before the action runs, reserving the spots the recipients coming after you are expected to fill.

userReceiver
string[]

Users the document is handed over to. An address that matches no active user is taken as an external recipient and is mailed a share invitation instead, so it has to be a valid e-mail address.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$
version
integer | null

Version of the document you believe you are acting on, used to detect that someone changed it in the meantime. Leave it out to act on the document as it currently stands.

Required range: x > 0
Example:

6

Response

The action was executed and the document moved to its next state.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"