API Reference

Sastamail Notification API is also referred to as Web Hooks, allowing 3rd delivery service or application (like PowerMTA, Postfix, Exim...) to send a delivery or abuse report to Sastamail for a given transaction which could be a success / bounce / feedback or abuse report

Parameters


api_token string
Your API token. You can find it in your API main page when logged in.


message_id string
Message's id


type string
One of 4 types: sent | bounced | reported | failed


bounce_type string
Required if type is bounced


report_type string
Required if type is reported


description string
Notification message

$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->notification()->read([
    'type' => 'sent',
    'message_id' => '201637442604422402.6199642caf7f3',
]);
{
    "message": "Comming..."
}
$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->notification()->read([
    'type' => 'bounced',
    'message_id' => '201637442604422402.6199642caf7f3',
    'bounced_type' => 'hard',
]);
{
    "message": "Comming..."
}
$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->notification()->read([
    'type' => 'abuse',
    'message_id' => '201637442604422402.6199642caf7f3',
    'report_type' => 'hard',
]);
{
    "message": "Comming..."
}