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
    • Import profile
    • Update profile
    • Import multiple profiles
    • Update multiple profiles
    • Add multiple profiles
    • Add profile to database
    • Quick profile import
    • Import profile to RabbitMQ
    • Get profile data
    • Uploading profiles to a file
    • Suspend all database profiles
    • Unsuspend all profiles in a database
    • Delete profile
    • Subscription fields functional update
    • Database fields functional update
    • Merging multiple profiles
    • Unsubscribe profile from resource
    • Profile splitting
    • Subscriptions
      • Add or edit subscription
      • Get all profile subscriptions
      • Get all subscriptions from multiple profiles
      • Get profile subscription
      • Delete profile subscription
      • Restore deleted subscription
      • Suspend all subscriptions
      • Unsuspend all suspended subscriptions
    • Action history
    • Profile relations
    • Get data for multiple profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
  • 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).
  • Profiles
  • Subscriptions
  • Get all subscriptions from multiple profiles
Documentation for version v72

Get all subscriptions from multiple profiles

Description​

Retrieves all subscription entries from several customer profiles.

Request URL​

Method: POST

https://example.com/api/v1.1/subscriptions/list_all

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json.
resource_idint1YesResource ID
db_idint1NoDatabase ID
channelstring"email"NoChannel type
statusstring"subscribed"NoSubscription status
from_idstring"abcdefghijklmnqrstuvwxyz"NoFirst subscription in the list ID
limitint1NoResponse data limit

Request example​

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

Response example​

  • JSON
  • XML
{
"data": [
{
"db_id": 1,
"profile_id": "6643052fee44bb50a671161d",
"_xxh": "026e82a364dd17e6",
"hash_id": "fcf06ea1",
"resource_id": 29,
"channel": "email",
"email": "zanitrevitteu-5912@1xp.fr",
"priority": 0,
"status": "subscribed",
"custom_fields": {
"custom_int_field_2": 20000
}
}
],
"error": 0,
"error_text": "Successful operation",
"next_from_id": "cPydNpzRRGLhjKziMHRQ3awnGtyo8hjzn7Jar5mhd"
}
<xml>
<data>
<_xxh>026e82a364dd17e6</_xxh>
<channel>email</channel>
<custom_fields>
<custom_int_field_2>20000</custom_int_field_2>
</custom_fields>
<db_id>1</db_id>
<email>zanitrevitteu-5912@1xp.fr</email>
<hash_id>fcf06ea1</hash_id>
<priority>0</priority>
<profile_id>6643052fee44bb50a671161d</profile_id>
<resource_id>29</resource_id>
<status>subscribed</status>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
<next_from_id>cPydNpzRRGLhjKziMHRQ3awnGtyo8hjzn7Jar5mhdm</next_from_id>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
next_from_idstringThe index must be passed in the next request to receive another piece of data, until the result output contains 0 history lines
resource_idintSubscription resource ID
channelstringchannel type
custom_fieldsobjectSystem and custom subscription fields.

You can get information about subscription fields in a resource using the /v1.1/resources/fields_get method
catsarrayThe resource categories to which the profile is subscribed.

Additionally for the Email channel:

ParameterTypeDescription
emailstringEmail address

Additionally for the Push channel:

ParameterTypeDescription
providerstringProvider type
subscription_idstringSubscription ID

Additionally for the SMS channel:

ParametersTypeDescription
phonestringPhone number

Additionally for the Telegram channel:

ParameterTypeDescription
cc_dataobjectChat ID between Telegram bot and user

Additionally for the WhatsApp* channel:

ParameterTypeDescription
cc_dataobjectWhatsApp* user's phone number

*The Meta organization, which owns Instagram, Facebook and WhatsApp products, has been declared as extremist and banned in Russia.

Last updated on Dec 7, 2024
Previous
Get all profile subscriptions
Next
Get profile subscription
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.