Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v72
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
    • Activate campaign
    • Deactivate campaign
    • Get campaign list
    • Get campaign information
    • Get campaign log
    • Clone campaign
    • Delete campaign
    • Get campaign status
    • Broadcast campaigns
    • Regular campaigns
    • Trigger campaigns
  • Automation scenarios
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDevv71
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
This is documentation for Altcraft Platform v72. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Campaigns
  • Get campaign log
Documentation for version v72

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​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"limit": 2
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>1</id>
<limit>2</limit>
</xml>

Response example​

  • JSON
  • XML
{
"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
}
<xml>
<data>
<level>"INFO"</level>
<message>"Campaign finished"</message>
<state>"end"</state>
<time>"2024-05-28T16:40:59.207Z"</time>
<value>""</value>
</data>
<data>
<level>"INFO"</level>
<message>"Total time spent"</message>
<state>""</state>
<time>"2024-05-28T16:40:59.208Z"</time>
<value>"351.155547ms"</value>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
<total_count>9</total_count>
</xml>

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
Last updated on May 29, 2024
Previous
Get campaign information
Next
Clone campaign
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.