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 information
Documentation for version v72

Get campaign information

Description​

Retrieves detailed campaign information.

Request URL​

Method: POST

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

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
idint1YesCampaign ID

Request example​

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

Response example​

  • JSON
  • XML
{
"data": {
"id": 118,
"name": "Daily weather notification",
"description": "",
"type": "regular",
"updated_user": "roman",
"update_time": "2024-05-20T09:17:53.362Z",
"is_active": false,
"is_completed": false,
"data_id": 1,
"data_type": "list",
"content": [
{
"subject": "",
"from_email": "",
"from_name": "",
"replyto_email": "",
"replyto_name": "",
"message_id": 21
}
],
"status": "Inactive",
"subid": "",
"virtual_sender_id": 2,
"providers": [
"google",
"mozilla",
"safari",
"safari-native",
"firefox-firebase",
"chrome-firebase",
"opera-firebase",
"yandex-firebase",
"samsung-firebase",
"android-firebase",
"ios-firebase",
"ios-apns",
"yandex-Appmetrica-device-id-ios",
"yandex-Appmetrica-device-id-android",
"yandex-Appmetrica-ios-ifa",
"yandex-Appmetrica-google-aid",
"yandex-Appmetrica-android-token",
"yandex-Appmetrica-ios-token",
"android-huawei",
"ios-huawei",
"android-rustore"
],
"push_sending_mode": "fanout",
"resource_id": 26,
"channel": "push",
"for_confirm": false
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<data>
<id>118</id>
<name>Daily weather notification</name>
<description></description>
<type>regular</type>
<updated_user>roman</updated_user>
<update_time>2024-05-20T09:17:53.362Z</update_time>
<is_active>false</is_active>
<is_completed>false</is_completed>
<data_id>1</data_id>
<data_type>list</data_type>
<content>
<subject></subject>
<from_email></from_email>
<from_name></from_name>
<replyto_email></replyto_email>
<replyto_name></replyto_name>
<message_id>21</message_id>
</content>
<status>Inactive</status>
<subid></subid>
<virtual_sender_id>2</virtual_sender_id>
<providers>google</providers>
<providers>mozilla</providers>
<providers>safari</providers>
<providers>safari-native</providers>
<providers>firefox-firebase</providers>
<providers>chrome-firebase</providers>
<providers>opera-firebase</providers>
<providers>yandex-firebase</providers>
<providers>samsung-firebase</providers>
<providers>android-firebase</providers>
<providers>ios-firebase</providers>
<providers>ios-apns</providers>
<providers>yandex-Appmetrica-device-id-ios</providers>
<providers>yandex-Appmetrica-device-id-android</providers>
<providers>yandex-Appmetrica-ios-ifa</providers>
<providers>yandex-Appmetrica-google-aid</providers>
<providers>yandex-Appmetrica-android-token</providers>
<providers>yandex-Appmetrica-ios-token</providers>
<providers>android-huawei</providers>
<providers>ios-huawei</providers>
<providers>android-rustore</providers>
<push_sending_mode>fanout</push_sending_mode>
<resource_id>26</resource_id>
<channel>push</channel>
<for_confirm>false</for_confirm>
</data>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParametersTypeDescription
errorintError code
error_textstringError text
contentJSON arrayMessage templates list
data_idintAudience source ID
data_typestringAudience source type
idintCampaign ID
update_timestringDate the campaign was last edited
updated_userstringName of the user who edited the campaign
is_activeboolCampaign active flag
is_completedboolCampaign finished flag
namestringCampaign name
resource_idintResource ID
send_email_contentboolEmail channel active
send_push_contentboolPush channel active
send_sms_contentboolSMS channel active
push_sending_modestringPush notification sending mode (push channels only)
for_confirmboolMessages with opt-in link flag
statusstringCampaign status
subidstringCampaign SubID
typestringCampaign type
virtual_sender_idintVirtual sender ID
descrstringCampaign description
attributesobjectAttributes assigned to the campaign and their values
Last updated on May 29, 2024
Previous
Get campaign list
Next
Get campaign log
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.