Rules Execution Log
A rules execution log is a record of rule execution. When a rule is triggered and evaluated, the backend logs the trigger event, condition evaluation results, and executed actions.
This endpoint provides visibility into rule execution history for debugging and monitoring purposes.
The retention policy for the logs is set to 7 days.
Rules execution logs response
List rules execution logs
GET api / v1 / rules_execution_logs
List rules execution logs with optional filters and pagination.
Returns paginated rule execution records (controlled by page_size), including trigger conditions, evaluation results, and executed actions.
curl -X GET "https://example.rossum.app/api/v1/rules_execution_logs?rule=123%2C456&request_id=6166deb3-2f89-4fc2-9359-56cc8e3838e4&execution_result=success&trigger_event=annotation_imported&search=invoice&page_size=50"{
"results": [
{
"rule_id": 123,
"rule_name": "Auto-confirm invoices over $1000",
"queue_id": 456,
"annotation_id": 789,
"request_id": "6166deb3-2f89-4fc2-9359-56cc8e3838e4",
"created_at": "2024-01-15T10:30:00.000000Z",
"trigger_event": "annotation_imported",
"trigger_condition": "field.amount_total > 1000",
"trigger_condition_results": [
true
],
"trigger_condition_values": [
{
"amount_total": "1500.00"
}
],
"execution_result": "success",
"execution_error": null,
"actions": [
[
{
"action_id": "a1",
"action_type": "send_email",
"execution_result": "success",
"execution_error": null,
"payload": {
"to": [
"accountant@example.com"
],
"cc": [
"manager@example.com"
],
"subject": "Invoice processed",
"body": "Invoice has been processed successfully.",
"attach_document": true
}
},
{
"action_id": "a2",
"action_type": "add_label",
"execution_result": "success",
"execution_error": null,
"payload": {
"labels": [
"https://example.rossum.app/api/v1/labels/123"
]
}
},
{
"action_id": "a3",
"action_type": "change_status",
"execution_result": "success",
"execution_error": null,
"payload": {
"method": "postpone"
}
}
]
]
}
],
"pagination": {
"next": null,
"previous": null
}
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"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
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