Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
    • Get resource statistics
    • Update statistics on resource
    • Get resources list
    • Get resource information
    • Get resource subscription fields
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • 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
  • Resources
  • Get resources list
Documentation for version v74

Get resources list

Description​

Retrieves all created resources list.

Request URL​

Method: POST

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

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
from_idint1NoThe first ID in the response.
By default – 1
limitint1NoResources list limit.
By default – 1000
groups[]String[ "group1", "group2" ]NoList of access groups
groups_id[]int[ 0, 1 ]NoList of access groups IDs

Request example​

  • JSON
  • XML
{
"from_id": 1,
"limit": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<from_id>1</from_id>
<limit>1</limit>
<token>abcdefghijklmnqrstuvwxyz</token>
</xml>

Response example​

  • JSON
  • XML
{
"data": [
{
"id": 1,
"name": "Resource",
"groups": [
{
"id": 1,
"name": "subaccount"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"next_from_id": 4,
"total_count": 1
}
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<data>
<id>1</id>
<name>Resource</name>
<groups>
<id>1</id>
<name>subaccount</name>
</groups>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
<next_from_id>4</next_from_id>
<total_count>1</total_count>
</xml>

Response parameters​

ParameterTypedescription
errorintError code
error_textstringError text
next_from_idintThe index must be passed in the next request to receive another piece of data, until the result output contains 0 history lines
idintResource ID
namestringResource name
total_countintTotal resources count
groups[]StringList of groups
Last updated on Mar 23, 2023
Previous
Update statistics on resource
Next
Get resource information
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.