Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    User API documentationAPI interactionMatching
      Profilesarrow
    • Import profileUpdate profileImport multiple profilesUpdate multiple profilesAdd multiple profilesAdd profile to databaseQuick profile importImport profile to RabbitMQGet profile dataUploading profiles to a fileSuspend all database profilesUnsuspend all profiles in a databaseDelete profileSubscription fields functional updateDatabase fields functional updateMerging multiple profilesUnsubscribe profile from resourceProfile splitting
        Subscriptionsarrow
      • Add or edit subscriptionGet all profile subscriptionsGet all subscriptions from multiple profilesGet profile subscriptionDelete profile subscriptionRestore deleted subscriptionSuspend all subscriptionsUnsuspend all suspended subscriptions
        Action historyarrow
      • Get profile action historyGet multiple profiles action history
        Profile relationsarrow
      • Attach relationDetach relationModify relation propertiesOverwrite relation propertiesGet profile relations infoGet profile relations info
      Get data for multiple profiles
      Databasesarrow
    • Get database statisticsUpdate statistics on databaseGet database listGet database informationGet database fieldsDatabase wipe
      Resourcesarrow
    • Get resource statisticsUpdate statistics on resourceGet resources listGet resource informationGet resource subscription fields
      Segmentsarrow
    • Get statistics on resourceUpdate statistics on segmentAdd or remove profileGet profile data in a static segmentCreate segmentUpdate segmentGet segment informationGet segments listDelete segment
      Suppression listsarrow
    • Create suppression listUpdate suppression listGet suppression list infoGet the list of suppression listsDelete suppression listUpload suppression list data to file
        Suppression list actionsarrow
      • Check if email is suppressedAdd email to suppression listAdd multiple emails to suppression listRemove email from suppression listRemove all emails from suppression listCheck if domain is suppressedAdd domain to suppression listAdd multiple domains to suppression listRemove domain from suppression listRemove all domains from suppression listCheck if phone number is suppressedAdd phone number to suppression listAdd multiple phones to suppression listRemove phone number from suppression listRemove all phone numbers from suppression list
      Templates and fragmentsarrow
    • Get templates listGet template infoDelete templateAdd templateUpdate templateChannel object
      Campaignsarrow
    • Get campaign informationGet campaign listActivate campaignComplete campaignDeactivate campaignGet campaign status
      Mailingsarrow
    • Activate mailingDeactivate mailingGet mailing listGet mailing informationGet mailing logClone mailingDelete mailingGet mailing status
        Broadcast mailingsarrow
      • Get broadcasts listGet broadcast informationCreate broadcast mailingUpdate broadcast mailingLaunch a broadcast mailing
        Regular mailingsarrow
      • Get regular mailings listGet regular mailing informationCreate regular mailingUpdate regular mailingLaunch a regular mailing
        Trigger mailingsarrow
      • Get trigger mailings listGet trigger mailing informationCreate trigger mailingUpdate trigger mailingTrigger launch (API call)Profile import + trigger mailing launchTask for bulk trigger launchTask for bulk profiles import + trigger launchBulk trigger launchBulk profiles import + trigger mailing launchClone a trigger mailingData array
      Automation scenariosarrow
    • Engage profile in scenarioImport and engage profile in scenarioBatch import and engage profiles in a scenarioTask for batch import and engaging profiles in the scenarioGet scenarios listActivate scenarioDeactivate scenario
      Loyalty Programsarrow
    • Get profile tier in a loyalty programExport points transactionsExpiring points for a periodGet profile account transactionsGet trigger promotions listAccrue points to a memberRedeem member pointsCommit temporary transactionPreliminary Order CalculationOrder ConfirmationRoll back temporary transactionCancel points transactionGet points account balanceRegister member in a loyalty programRemove member from loyalty program
      Promo codesarrow
    • Import promo codesGet promo code informationActivate promo codeUpdate promo codeAttach promo codeDetach promo codeGet all promo codes
      Goalsarrow
    • Goals and goal values registration
      Application push notificationsarrow
    • Processing and adding a subscriptionAdd app push events
      Marketarrow
      • Market objectsarrow
      • Order data objectProduct data objectSKU data objectCategories arrayCustom fields array
        Ordersarrow
      • Import order and item statusesGet orders listDelete orderGet order statusUpdate order line status
        Products and SKUarrow
      • Import products, SKUs and categoriesImport SKUs and categoriesGet products listGet SKUs listDelete productsDelete SKU
      Analytic reportsarrow
    • Get summary reportGet soft bounces reportGet undeliveries report
      SendersDevarrow
    • Get senders list
        Virtual senders (Smart accounts only)arrow
      • Get virtual senders listGet virtual sender informationClone virtual senderCreate virtual senderUpdate virtual senderDelete virtual sender
      External datatables queriesarrow
      • Segmentation queriesarrow
      • Add segmentation queryUpdate segmentation queryGet segmentation query informationGet segmentation queries listDelete segmentation query
        Template queriesarrow
      • Add template queryUpdate template queryGet template query informationGet template queries listDelete template query
      Objectsarrow
    • AKMTA objectContent objectEmail rule objectFile objectProfile data objectSMS rule objectSender objectSender typesStart schedule objectSubscription objectTrigger types
      Miscellaneousarrow
    • Upload fileGet message web versionPush providersDeduplication of requestsHow to send API request with RabbitMQList of gender identificationsObtain valid values for fields: browsers, devices, tz, oses, languages
    Importing the API collection in PostmanList of API endpoints
      SDKarrow
      • mSDKarrow
        • Androidarrow
        • Quick StartSDK FunctionalitySDK ConfigurationPublic SDK API
            Provider configuration androidarrow
          • Firebase Cloud MessagingHuawei Mobile ServicesRuStore
          iOSarrow
        • Quick StartSDK FunctionalitySDK ConfigurationPublic SDK API
            Provider configurationarrow
          • Apple Push Notification ServiceFirebase Cloud MessagingHuawei Mobile Services
          React Native (Android/iOS)arrow
        • Quick StartSDK ConfigurationSDK FunctionalityPublic SDK APIProvider setup
        Managing JWT and Role Token
  • Campaigns
  • Get campaign list

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 - 2026 Altcraft, LLC. All rights reserved.