Scenarios > Logs
The following endpoints allow you to manage scenarios logs.
Retrieves a collection of all logs for a scenario with a given ID. Returned logs are sorted by imtId in descending order.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the scenario. You can get the scenarioId with the List scenarios API call.
112The timestamp in milliseconds that defines the starting point of time from which the logs should be retrieved. Older logs will not be returned.
1632395547The timestamp in milliseconds that defines the ending point of time to which the logs should be retrieved. Newer logs will not be returned.
1632395548Filters logs by the execution status. 1 is for success, 2 is for warning, and 3 is for error.
2Possible values: If set to true, this parameter specifies that check runs should be hidden in the returned results. Check runs concern scenarios starting with a trigger in cases when the trigger does not find anything new.
trueThe number of entities you want to skip before getting entities you want.
The maximum number of entities you want to get in the response.
Include records with last value in the result set. Just in case of the last based paging.
trueThe last retrieved key. In response, you get only entries that follow after the key.
10The value that will be used to sort returned entities by.
The sorting order. It accepts the ascending and descending direction specifiers.
Successful response
GET /api/v2/scenarios/{scenarioId}/logs HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"scenarioLogs": [
{
"imtId": "1632371744497_scenario.1229.auto.da518adcd14b4b64ac6358823ccb80ca",
"duration": 19979,
"operations": 10,
"transfer": 3942,
"centicredits": 1000,
"organizationId": 21,
"teamId": 27,
"id": "da518adcd14b4b64ac6358823ccb80ca",
"type": "auto",
"authorId": null,
"instant": false,
"timestamp": "2021-09-23T04:35:44.497Z",
"status": 1
}
],
"pg": {
"sortBy": "imtId",
"sortDir": "desc",
"last": "1632371803593_scenario.1229.auto.3cf2f332f74f43f1b2c4ae431cbedb5b",
"showLast": false,
"limit": 50
}
}Retrieves an execution log with a given ID for a scenario with a given ID. It returns the execution details such as execution duration, type, and status.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the scenario. You can get the scenarioId with the List scenarios API call.
112The unique ID of the scenario execution. It can be retrieved from the List scenario logs endpoint under the ID key.
cc1c49323b344687a324888762206003Execution log retrieved
GET /api/v2/scenarios/{scenarioId}/logs/{executionId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Execution log retrieved
{
"scenarioLogs": {
"imtId": "1632398122946_scenario.5.manual.cc1c49323b344687a324888762206003",
"duration": 5611,
"operations": 2,
"transfer": 5,
"centicredits": 200,
"organizationId": 5,
"teamId": 16,
"id": "cc1c49323b344687a324888762206003",
"type": "manual",
"authorId": 5,
"instant": true,
"timestamp": "2021-09-23T11:55:22.946Z",
"status": 1
}
}Retrieves details about an execution.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the scenario. You can get the scenarioId with the List scenarios API call.
112The unique ID of the scenario execution. It can be retrieved from the List scenario logs endpoint under the ID key.
cc1c49323b344687a324888762206003Successful response
GET /api/v2/scenarios/{scenarioId}/executions/{executionId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"status": "SUCCESS",
"outputs": {
"output1": "text output",
"output2": 123
}
}Retrieves an aggregated list of operations per module within a specified time period.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the scenario. You can get the scenarioId with the List scenarios API call.
112Days to summarize retrospectively. Default 1, must be between 1 and 30.
1Module log retrieved
GET /api/v2/scenarios/{scenarioId}/modules/operations HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Module log retrieved
{
"operations": [
{
"moduleId": 1,
"total": 315,
"warnings": 0,
"errors": 1
}
]
}Retrieves an operation logs of a given module within a given scenario. Returns the operation details such as execution id, timestamp or status.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the scenario. You can get the scenarioId with the List scenarios API call.
112The unique ID of the scenario module. It is available in the scenario blueprint that can be retrieved from the Get scenario blueprint endpoint.
1The number of entities you want to skip before getting entities you want.
The maximum number of entities you want to get in the response.
Include records with last value in the result set. Just in case of the last based paging.
trueThe last retrieved key. In response, you get only entries that follow after the key.
10The value that will be used to sort returned entities by.
The sorting order. It accepts the ascending and descending direction specifiers.
Module logs retrieved
GET /api/v2/scenarios/{scenarioId}/modules/{moduleId}/logs HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Module logs retrieved
{
"moduleLogs": [
{
"imtId": "1632398122946_scenario.5.manual.cc1c49323b344687a324888762206003",
"executionId": "384ef653d04844589e1c8427c13ffb15",
"organizationId": 5,
"teamId": 16,
"scenarioId": 5,
"timestamp": "2021-09-23T11:55:22.946Z",
"status": 1,
"bundles": 1
}
]
}Last updated

