Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
    • Get campaign information
    • Get campaign list
    • Activate campaign
    • Complete campaign
    • Deactivate campaign
    • Get campaign status
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Campaigns
  • Get campaign list
Documentation for version v75

Get campaign list

Description​

Retrieve the list of campaigns — combinations of mailings and scenarios into unified marketing strategies.

Access rights

To use this method, the API token must have:

  • Campaigns — Run
  • Access to the groups where the campaigns are located

Configure permissions in Settings — Tokens.

Request URL​

Method: POST

https://example.com/api/v1.1/scampaigns/list

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse format
default – "json"
from_idint1NoID of the first campaign in the response
default – 1
limitint2NoLimit on the number of returned items
default – 1000
statestring"active"NoCampaign status. One of: "cloning", "inactive", "waiting", "active", "completed", "deleted"
ui_tags[]string["tag1", "tag2"]NoTag list to filter campaigns
default – []
groups[]string["group1", "group2"]NoGroup names to filter campaigns
default – []
groups_id[]int[0, 1]NoGroup IDs to filter campaigns
default – []
attributesJSON object
"attributes": {
"season": ["spring_2025", "summer_2025"]
}
NoAttribute values to filter campaigns

Request example​

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

Response example​

  • JSON
  • XML
{
"data": [
{
"id": 42,
"is_delete": false,
"createtime": "2025-08-22T07:15:29.711Z",
"updatetime": "2025-08-22T09:13:24.264Z",
"updated_user": "test",
"name": "Seasonal sale",
"description": "",
"tags": [],
"state": "inactive",
"audience": {
"state": "ready",
"seg_id": 124,
"list_id": 49,
"extension_conf": {
"workflows": {"ids": []},
"triggers": {"ids": []},
"broadcasts": {"ids": []},
"regulars": {"ids": [556]},
"abns": {"ids": []},
"placements": {"ids": []}
},
"lcg": {
"ignore_entities": {
"workflows": {"ids": []},
"triggers": {"ids": []},
"broadcasts": {"ids": []},
"regulars": {"ids": []},
"abns": {"ids": []},
"placements": {"ids": []}
},
"size_formation_settings": {
"limit": 0,
"percent": "10.00"
}
}
},
"active_period": {
"settings": {
"tz": "Europe/Moscow",
"end_at": "2025-08-23T10:36:25.099+03:00"
},
"history": {
"start": "2025-08-22T12:13:18.813+03:00",
"stop": "2025-08-22T12:13:24.264+03:00"
}
},
"control_group_counter": 3002,
"marketing_activities_counter": 1,
"refresh_data": {
"state": "completed",
"progress": 100,
"task_start_date": "2025-08-22T09:13:19.926Z",
"task_end_date": "2025-08-22T09:13:20.048Z"
},
"group_id": 0,
"groups_id": [0],
"groups": [
{
"id": 0,
"name": "main"
}
],
"attributes": {
"season": "spring_2025",
"branch": "marketing"
}
}
],
"error": 0,
"error_text": "",
"total_count": 5
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<data>
<id>42</id>
<is_delete>false</is_delete>
<createtime>2025-08-22T07:15:29.711Z</createtime>
<updatetime>2025-08-22T09:13:24.264Z</updatetime>
<updated_user>test</updated_user>
<name>Seasonal sale</name>
<description/>
<ui_tags/>
<state>inactive</state>
<audience>
<state>ready</state>
<seg_id>124</seg_id>
<list_id>49</list_id>
<extension_conf>
<workflows><ids/></workflows>
<triggers><ids/></triggers>
<broadcasts><ids/></broadcasts>
<regulars><ids><id>556</id></ids></regulars>
<abns><ids/></abns>
<placements><ids/></placements>
</extension_conf>
<lcg>
<ignore_entities>
<workflows><ids/></workflows>
<triggers><ids/></triggers>
<broadcasts><ids/></broadcasts>
<regulars><ids/></regulars>
<abns><ids/></abns>
<placements><ids/></placements>
</ignore_entities>
<size_formation_settings>
<limit>0</limit>
<percent>10.00</percent>
</size_formation_settings>
</lcg>
</audience>
<active_period>
<settings>
<tz>Europe/Moscow</tz>
<end_at>2025-08-23T10:36:25.099+03:00</end_at>
</settings>
<history>
<start>2025-08-22T12:13:18.813+03:00</start>
<stop>2025-08-22T12:13:24.264+03:00</stop>
</history>
</active_period>
<control_group_counter>3002</control_group_counter>
<marketing_activities_counter>1</marketing_activities_counter>
<refresh_data>
<state>completed</state>
<progress>100</progress>
<task_start_date>2025-08-22T09:13:19.926Z</task_start_date>
<task_end_date>2025-08-22T09:13:20.048Z</task_end_date>
</refresh_data>
<group_id>0</group_id>
<groups_id>0</groups_id>
<groups>
<group>
<id>0</id>
<name>main</name>
</group>
</groups>
<attributes>
<season>spring_2025</season>
<branch>marketing</branch>
</attributes>
</data>
<total_count>5</total_count>
</xml>

Returned parameters​

Top-level fields​

ParameterTypeDescription
errorintError code. 0 – successful execution
error_textstringError description
total_countintTotal number of campaigns
next_from_idintPointer for retrieving the next batch of data
dataarrayArray of campaign objects

The data object​

Contains core campaign information.

ParameterTypeDescription
idintCampaign ID
namestringCampaign name
descriptionstringCampaign description
list_idintProfile database ID
seg_idintSegment ID
statestringCurrent campaign status
createtimestringCampaign creation date and time
updatetimestringLast update date and time
updated_userstringUser who made the last changes
is_deletebooleanIndicates whether the campaign is deleted
tagsarrayCampaign tags
groupsarrayUser groups that have access to the campaign
group_idintMain campaign group ID
groups_idarrayArray of campaign group IDs
marketing_activities_counterintNumber of marketing activities (mailings, scenarios, placements)
control_group_counterintNumber of profiles in the control group
attributesobjectCampaign attributes
refresh_dataobjectInformation about the campaign data refresh process

The active_period object​

Contains information about the campaign timeframe.

ParameterTypeDescription
settingsobjectPlanned active period settings
historyobjectActual active period data

settings — planned campaign timing

ParameterTypeDescription
tzstringCampaign time zone
start_atstringPlanned campaign start date
end_atstringPlanned campaign end date

history — actual campaign data

ParameterTypeDescription
startstringActual campaign start date
stopstringActual campaign stop date

The audience object​

Contains campaign audience settings and information.

ParameterTypeDescription
statestringAudience building status
seg_idintSegment ID
list_idintProfile database ID
extension_confobjectAudience expansion settings via marketing activities
lcgobjectLocal control group settings

extension_conf

Activities that expand the campaign audience.

ParameterTypeDescription
workflowsobjectScenarios that expand the audience
triggersobjectTriggered mailings that expand the audience
broadcastsobjectBroadcast mailings that expand the audience
regularsobjectRegular mailings that expand the audience
abnsobjectA/B tests that expand the audience
placementsobjectPlacements that expand the audience

Each of these objects contains an array of IDs of the corresponding activities.

lcg — Local control group settings

ParameterTypeDescription
ignore_entitiesobjectActivities that ignore LCG
size_formation_settingsobjectLocal control group size settings

ignore_entities — activities excluded from LCG audience building

ParameterTypeDescription
workflowsobjectScenarios that ignore LCG
triggersobjectTriggers that ignore LCG
broadcastsobjectBroadcast mailings that ignore LCG
regularsobjectRegular mailings that ignore LCG
abnsobjectA/B tests that ignore LCG
placementsobjectPlacements that ignore LCG

size_formation_settings — LCG size settings

ParameterTypeDescription
limitintMaximum number of profiles in LCG
percentstringLCG share of the total audience in percent

The refresh_data object​

Contains information about the campaign data refresh process.

ParameterTypeDescription
statestringData refresh task status
progressintTask progress in percent
task_start_datestringData refresh task start date and time
task_end_datestringData refresh task end date and time

The groups object​

Contains information about access groups for the campaign.

ParameterTypeDescription
idintUser group ID
namestringUser group name
Last updated on Oct 16, 2024
Previous
Get campaign information
Next
Activate campaign
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Returned parameters
    • Top-level fields
    • The data object
    • The active_period object
    • The audience object
    • The refresh_data object
    • The groups object
© 2015 - 2025 Altcraft, LLC. All rights reserved.