Get resource information
Description
Retrieves detailed information about a single resource, including channels and associated databases.
Request URL
Method: POST
https://example.com/api/v1.1/resources/get
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format. By default – json |
id | int | 1 | Yes | Resource ID |
Request example
{
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}
Response example
{
"data": {
"channels": [
"email",
"push"
],
"dbs_ids": [
1
],
"id": 1,
"name": "Resource",
"trk_domain": "tracking.example.com",
"url": "https://blog.example:8080"
},
"error": 0,
"error_text": "Successful operation"
}
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
channel | JSON array | Enabled channels |
dbs_ids | JSON array | Associated databases |
id | int | Resource ID |
name | string | Resource name |
trk_domain | string | Subscribers actions tracking domain |
url | string | Resource URL |