Skip to main content
Retrieve a workflow definition

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.

Path Parameters

name
string
required

Name of the workflow definition to retrieve.

Minimum string length: 1
Example:

"wf_archive"

Response

Returns the workflow definition.

actions
object[] | null

Steps whoever holds the document takes themselves. An action is the only kind of step that can close the workflow and mark the document archived.

cancelStateId
integer | null

Workflow state a document moves to when its workflow is cancelled.

name
string | null

Identifier of the workflow definition, which is also the id of its record. A document type names it to say which workflow its documents run, and the workflow rights a user holds are held against it.

Example:

"wf_archive"

requests
object[] | null

Steps raised for somebody else to answer. A request always counts as handing the document over, never archives it, may leave the document where it stands, and names the action that answers it. Actions and requests share one numbering, so an id belongs to only one of them.

reworkStateId
integer | null

State a document returns to once it has been reworked and handed back to whoever asked for the rework. It means nothing unless some request asks for rework in the first place.

startStateId
integer | null

State a new document starts in, and the one it is put back to when the workflow is reset.

Example:

0

states
object[] | null

Positions a document can rest in, each with its own id and its own say over what may be done to the document while it is there.