Skip to main content

Get the list of suppression lists

Description

Retrieves multiple suppression lists information.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
from_idint1NoThe first ID in the resulting list.
By default – 1
limitint5NoSuppression lists limit
By default – 1000
ui_tags[]String[ "tag1", "tag2" ]NoList of tags for search
By default – []
groups[]String[ "group1", "group2" ]NoList of access groups
By default – []
groups_id[]int[ 0, 1 ]NoList of access groups IDs
By default – []

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"from_id": 1,
"limit":2
}

Response example

    
{
"data": [
{
"id": 1,
"name": "Global suppress list",
"ui_tags": [],
"groups": [
{
"id": 0,
"name": "main"
}
]
},
{
"id": 3,
"name": "New suppression list",
"ui_tags": [],
"groups": [
{
"id": 0,
"name": "main"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 5
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
idintSuppression list ID
namestringSuppression list name
total_countintTotal suppression lists count
ui_tags[]StringList of tags
groups[]StringList of groups