Logs
This page provides comprehensive information and documentation on a set of API methods specifically designed to handle logs in the Integrator.
GET
List Logs
GET
List LogsThis method is used to list all logs associated with a flow ID, providing information such as their running state, success result, amount of lines, subflow logs, and more.
Path: /logs?projectid=<projectId>&limit=20&page=1&flowId=<flowId>&log_type=1
Prod Integrator:
https://flow.entegrator.akinon.net:3000/logs
Dev Integrator:
https://flow-dev.entegrator.akinon.net:3000/logs
Query Parameters
projectId
query
Project identifier
✓
-
-
flowId
query
Flow identifier
✓
-
-
limit
query
Limits the amount of logs
25
Min:1 Max:100
page
query
Offsets the returned log page
1
Min:1
log_type
query
Log type enum, "1" for main logs, "2" for sub logs, "3" for line logs
-
One of following values: 1,2,3
filename_uuid
query
Execution ID of the process, used for filtering "main logs"
-
-
original_filename_uuid
query
ID of the process, used for finding "line logs" belonging to "main log"
-
-
Authentication
header
Auth token for current user
✓
Example Response (200 OK)
state
:1 - Start
2 - In Progress
3 - Finished
status
:1 - In Progress
2 - Success
3 - Failed
4 - Empty
next
: URL for the next log pageprevious
: URL for the previous log pagetriggered_by
: E-mail address of the user who triggered the flow ("System" for automatically triggered flows)is_triggered
: True for manually triggered inbound flowscreated
: Timestamp forlog_type=1
, datetime string for othersfinished
: Timestamp forlog_type=1
, datetime string for others
Response Errors
Status Code 401: This status code is returned when the token is incorrect or the Authentication header is missing.
Status Code 400: This status code is returned when the required fields are missing or incorrect.
Status Code 404: This status code is returned when the search result is empty.
Example Request URL
Filter line logs with option to search within main log.
To filter using search options, the line logs (log_type=3) need to be searched within. For each search option, the corresponding search option field should be provided, and an index (starting from 1) should be assigned to match the search option field and its values. If an original_filename_uuid
is provided as the main log execution ID, the search will be limited to that specific main log.
Path: /logs?flowId=123456-12345-1234&log_type=3&projectid=98765-9876-9875&limit=20&page=1&search_field.1=sku&search_value.1=examplesku
flowId
123456-12345-1234
Flow identifier
log_type
3
line log type
original_filename_uuid
asdefgh-12345-9875
Execution ID
projectid
98765-9876-9875
Project identifier
limit
20
Amount of log
page
1
Page count of the log
search_field.1
sku
Name of the search option
search_value.1
examplesku
Value of the search option
GET
Download Logs
GET
Download LogsThis method is used to download the log file for the process.
Path: /logs/download?id=<log_id>&flowId=<flowId>&projectid=<projectId>&projectslug=<projectSlug>
Prod Integrator:
https://flow.entegrator.akinon.net:3000/logs/download
Dev Integrator:
https://flow-dev.entegrator.akinon.net:3000/logs/download
Query Parameters
id
query
Log ID
✓
projectId
query
Project identifier
✓
flowId
query
Flow identifier
✓
projectslug
query
Name of the project slug
✓
Authentication
header
Auth token for current user
✓
Response: The response is an encoded base64
zip file. When the zip file is extracted, it contains a json
file with log details such as errors, request body, response body, and so on.
Example Request
Example Python Code for Downloading, Decoding and Reading Log:
Response Errors
Status Code 401: This status code is returned when the token is incorrect or the Authentication header is missing.
Status Code 400: This status code is returned when the required fields are missing or incorrect.
Last updated
Was this helpful?