Hook Run
A hook run is a record of hook execution (log). For easy and efficient development process of the extensions, the backend logs requests, responses (if enabled) and additional information, when the hook is being called.
The retention policy for the logs is set to 7 days.
Hook logs response
List hook runs
GET api / v1 / hooks / runs
List recent hook runs with optional filters and pagination.
The logs are sorted by the start timestamp in descending order.
The retention policy for the logs is set to 7 days.
curl -X GET "https://example.rossum.app/api/v1/hooks/runs?request_id=6166deb3-2f89-4fc2-9359-56cc8e3838e4&uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890&hook=1500×tamp_before=2023-09-23T12%3A00%3A00.000000Z×tamp_after=2023-09-23T12%3A00%3A00.000000Z&start_before=2023-09-23T12%3A00%3A00.000000Z&start_after=2023-09-23T12%3A00%3A00.000000Z&status=completed&status_code=200&email=1&search=error&page_size=50"{
"results": [
{
"timestamp": "2023-09-23T12:00:00.000000Z",
"request_id": "6166deb3-2f89-4fc2-9359-56cc8e3838e4",
"event": "annotation_content",
"action": "updated",
"annotation_id": 1,
"queue_id": 1,
"email_id": 1,
"hook_id": 1,
"hook_type": "webhook",
"message": "message",
"request": "{}",
"response": "{}",
"start": "2023-09-23T12:00:00.000000Z",
"end": "2023-09-23T12:00:00.000000Z",
"settings": "{}",
"status": "completed",
"uuid": "6166deb3-2f89-4fc2-9359-56cc8e3838e4"
}
],
"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": "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
List hook run logs
GET api / v1 / hooks / runs / {runUuid} / logs
List progress logs related to the specific hook run. The logs are sorted by the timestamp in ascending order.
curl -X GET "https://example.rossum.app/api/v1/hooks/runs/d5d021b3-cb12-4253-9f5f-6e8101fe1f42/logs"{
"results": [
{
"timestamp": "2023-09-23T12:00:00.000000Z",
"details": "Master Hub data update started"
}
]
}{
"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
List hook call logs
GET api / v1 / hooks / logs
⚠️ Deprecated: Use List hook runs instead.
List all the logs from all running hooks with optional filters and pagination.
The logs are sorted by the start timestamp in descending order.
curl -X GET "https://example.rossum.app/api/v1/hooks/logs?request_id=6166deb3-2f89-4fc2-9359-56cc8e3838e4&log_level=INFO&hook=1500×tamp_before=2023-09-23T12%3A00%3A00.000000Z×tamp_after=2023-09-23T12%3A00%3A00.000000Z&start_before=2023-09-23T12%3A00%3A00.000000Z&start_after=2023-09-23T12%3A00%3A00.000000Z&status=completed&status_code=200&email=1&search=error&page_size=50"{
"results": [
{
"timestamp": "2023-09-23T12:00:00.000000Z",
"request_id": "6166deb3-2f89-4fc2-9359-56cc8e3838e4",
"event": "annotation_content",
"action": "updated",
"annotation_id": 1,
"queue_id": 1,
"email_id": 1,
"hook_id": 1,
"hook_type": "webhook",
"message": "message",
"request": "{}",
"response": "{}",
"start": "2023-09-23T12:00:00.000000Z",
"end": "2023-09-23T12:00:00.000000Z",
"settings": "{}",
"status": "completed",
"uuid": "6166deb3-2f89-4fc2-9359-56cc8e3838e4"
}
],
"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": "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