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-25T00:00:00.000Z"NoLogs starting time (RFC 3339 format)
idint1YesCampaign ID
limitint2NoLog entries limit
By default – 1000

Request example

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

Response example

{
"data": [
{
"level": "INFO",
"message": "Begin campaign",
"state": "start",
"time": "2018-08-25T00:00:00.000Z",
"value": ""
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 10
}

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