Skip to content

Suppression List API Documentation

Suppression list management endpoints for browsing, importing, and deleting email addresses from the suppression list.

Browse Suppression List

POST /api.php

API Usage Notes

  • Authentication required: User API Key
  • Legacy endpoint access via /api.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: suppression.browse
SessionIDStringNoSession ID obtained from login
APIKeyStringNoAPI key for authentication
SearchPatternStringNoSearch pattern for filtering email addresses (supports * wildcard)
StartFromIntegerNoStarting record index for pagination (default: 0)
RetrieveCountIntegerNoNumber 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: Success

Delete from Suppression List

POST /api.php

API Usage Notes

  • Authentication required: User API Key
  • Legacy endpoint access via /api.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: suppression.delete
SessionIDStringNoSession ID obtained from login
APIKeyStringNoAPI key for authentication
EmailAddressStringYesEmail 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 list

Import to Suppression List

POST /api.php

API Usage Notes

  • Authentication required: User API Key or Admin API Key
  • Legacy endpoint access via /api.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: suppression.import
SessionIDStringNoSession ID obtained from login
APIKeyStringNoAPI key for authentication
EmailAddressesStringNo*JSON-encoded array of email addresses to import
EmailAddressesBulkStringNo*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)

Any questions? Contact us.