Workflow Step
A workflow step object defines individual steps within a workflow that control the approval process for annotations. Each step has a specific type, mode, and condition that determines how the workflow progresses.
Currently, the only supported step type is approval, which requires designated assignees to approve annotations before they can proceed in the workflow.
Workflow step
ID of the workflow step
Name of the workflow step
URL of the workflow step
Organization URL.
URL of the workflow
Condition that designates whether the workflow step will be entered
Type of the workflow step (currently the only supported value is approval)
"approval"Supported values:
any- approval of one assignee is enoughall- all assignees must approveauto- automatically approved if the condition matches
Designates the evaluation order of steps within a workflow (must be unique per a workflow)
List workflow steps
GET api / v1 / workflow_steps
Retrieve all workflow step objects.
curl -X GET "https://example.rossum.app/api/v1/workflow_steps"{
"pagination": {
"next": null,
"previous": null
},
"results": [
{
"id": 7540,
"name": "Team Lead approval step",
"url": "https://example.rossum.app/api/v1/workflow_steps/7540",
"organization": "https://example.rossum.app/api/v1/organizations/406",
"workflow": "https://example.rossum.app/api/v1/workflows/7540",
"condition": {},
"type": "approval",
"mode": "all",
"ordering": 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
OK
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Retrieve workflow step
GET api / v1 / workflow_steps / {workflowStepID}
Get a workflow step object.
curl -X GET "https://example.rossum.app/api/v1/workflow_steps/0"{
"id": 7540,
"name": "Team Lead approval step",
"url": "https://example.rossum.app/api/v1/workflow_steps/7540",
"organization": "https://example.rossum.app/api/v1/organizations/406",
"workflow": "https://example.rossum.app/api/v1/workflows/7540",
"condition": {},
"type": "approval",
"mode": "all",
"ordering": 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
OK
ID of the workflow step
Name of the workflow step
URL of the workflow step
Organization URL.
URL of the workflow
Condition that designates whether the workflow step will be entered
Type of the workflow step (currently the only supported value is approval)
"approval"Supported values:
any- approval of one assignee is enoughall- all assignees must approveauto- automatically approved if the condition matches
Designates the evaluation order of steps within a workflow (must be unique per a workflow)
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error