Please note that this API functionality has been deprecated in favour of our new Webhook API. Visit our Transactional API Migration page to learn more.
Overview
You can use this request to retrieve a transactional email with a specific ID.
Note: This is a restful API.
The Method
| API | Method |
|---|---|
| GET | https://live20.everlytic.net/api/2.0/trans_mails/ |
Parameters
| Property | Type | Default | Required |
|---|---|---|---|
| Transaction_id | integer | none | Yes |
Example Request
"/api/2.0/trans_mails/5f14717e402fb0568a4a016b", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_POSTFIELDS => "", CURLOPT_HTTPHEADER => array( "Authorization: Basic ", "cache-control: no-cache" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) else
Example Response (Sent Email)
Example Response (Bounced Email)
Note: When retrieving a bounced transaction, you’ll be able to view the bounce type (“bounce_type”) and bounce reason (“bounce_reason”) under the “item” section of the API response.