Suppression List API Documentation
Suppression list management endpoints for browsing, importing, and deleting email addresses from the suppression list.
Browse Suppression List
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: suppression.browse |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SearchPattern | String | No | Search pattern for filtering email addresses (supports * wildcard) |
| StartFrom | Integer | No | Starting record index for pagination (default: 0) |
| RetrieveCount | Integer | No | Number of records to retrieve (default: 100) |
bash
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "suppression.browse",
"SessionID": "your-session-id",
"SearchPattern": "*@example.com",
"StartFrom": 0,
"RetrieveCount": 50
}'json
{
"Success": true,
"ErrorCode": 0,
"TotalRecords": 150,
"SuppressedEmails": [
{
"EmailAddress": "user@example.com",
"SuppressionSource": "User",
"Reason": "Unsubscribed",
"DateAdded": "2025-01-15 10:30:00"
}
]
}json
{
"Success": false,
"ErrorCode": []
}txt
0: SuccessDelete from Suppression List
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: suppression.delete |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| EmailAddress | String | Yes | Email address to remove from suppression list |
bash
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "suppression.delete",
"SessionID": "your-session-id",
"EmailAddress": "user@example.com"
}'json
{
"Success": true,
"ErrorCode": 0
}json
{
"Success": false,
"ErrorCode": [1, 2]
}txt
0: Success
1: Missing EmailAddress
2: Invalid email address or email address not found in suppression listImport to Suppression List
POST/api.phpAPI Usage Notes
- Authentication required: User API Key or Admin API Key
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: suppression.import |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| EmailAddresses | String | No* | JSON-encoded array of email addresses to import |
| EmailAddressesBulk | String | No* | Newline-separated list of email addresses to import |
* Note: Either EmailAddresses or EmailAddressesBulk must be provided. Both can be provided simultaneously.
bash
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "suppression.import",
"SessionID": "your-session-id",
"EmailAddresses": "[\"user1@example.com\", \"user2@example.com\"]",
"EmailAddressesBulk": "user3@example.com\nuser4@example.com\nuser5@example.com"
}'json
{
"Success": true,
"ErrorCode": 0,
"TotalImported": 5,
"TotalFailed": 0,
"FailedEmailAddresses": []
}json
{
"Success": false,
"ErrorCode": [1, 2]
}txt
0: Success
1: Missing EmailAddresses parameter
2: Missing EmailAddressesBulk parameter or invalid EmailAddresses format (both parameters are missing or EmailAddresses JSON is invalid)
Developer Portal