Skip to main content

Get campaign log

Description

Retrieves campaign logs.

Request URL

Method: POST

https://example.com/api/v1.1/campaigns/log_v2

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
from_timestring"2018-08-10T00:00:00.000Z"NoLogs starting time
idint1YesCampaign ID
limitint2NoLog entries limit
By default – 1000

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"limit": 2
}

Response example

{
"data": [
{
"level": "INFO",
"message": "Campaign finished",
"time": "2024-04-02T17:57:01.504Z",
"state": "end",
"value": ""
},
{
"level": "INFO",
"message": "Total time spent",
"time": "2024-04-02T17:57:01.505Z",
"state": "",
"value": "138.351985ms"
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 140
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
levelstringLogging level
messagestringLog entry
statestringEntry status
timedateEntry registration date
valuestringEvent associated value

Logging levels:

  • DEBUG
  • INFO
  • WARNING
  • ERROR

Event entry status:

  • start – campaign start
  • end – campaign finish