cURL
curl --request GET \
--url https://webhook.cocoonmail.com/webhook/mail/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://webhook.cocoonmail.com/webhook/mail/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://webhook.cocoonmail.com/webhook/mail/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://webhook.cocoonmail.com/webhook/mail/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://webhook.cocoonmail.com/webhook/mail/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://webhook.cocoonmail.com/webhook/mail/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://webhook.cocoonmail.com/webhook/mail/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://webhook.cocoonmail.com/webhook/mail/status");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);using RestSharp;
var options = new RestClientOptions("https://webhook.cocoonmail.com/webhook/mail/status");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"message": "Mail status data fetched successfully",
"data": {
"x_message_id": "123e4567-e89b-12d3-a456-426614174000",
"mail_content": "<p>Hello John, welcome to our platform!</p>",
"subject": "Welcome to Our Platform",
"name": "John Doe",
"sent": true,
"sent_at": "2026-03-20T10:15:30.000Z",
"bounced": false,
"bounced_at": null,
"bounced_error": null,
"unsubscribed": false,
"unsubscribed_at": null,
"delivered": true,
"delivered_at": "2026-03-20T10:16:05.000Z",
"open": true,
"opened_count": 3,
"bounce_type": null,
"clicked": true,
"clicked_count": 2,
"sendable": true,
"failed": false,
"smtp_code": "250",
"smtp_error": null,
"email": "john.doe@example.com",
"transactional_mail_id": "trns-abc123xyz789",
"created": "2026-03-20T10:14:50.000Z",
"transactional_name": "Welcome Email Campaign",
"scheduled_at": "2026-03-20T10:15:00.000Z",
"sender": "email_address",
"tracking_logs": [
{
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/122.0.0.0 Safari/537.36",
"client_family": "Chrome",
"client_version": "122.0.0.0",
"os_name": "Windows",
"os_version": "10",
"device_type": "Desktop",
"ip_address": "192.168.1.1",
"created": "2026-03-20T10:17:10.000Z",
"type": "OPEN"
},
{
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Version/17.0 Mobile Safari/604.1",
"client_family": "Mobile Safari",
"client_version": "17.0",
"os_name": "iOS",
"os_version": "17.0",
"device_type": "Mobile",
"ip_address": "192.168.1.2",
"created": "2026-03-20T10:18:25.000Z",
"type": "CLICK"
}
]
}
}
{
"message": "Bad request"
}
{
"detail": "Authentication credentials were not provided."
}
Transactional email
Mail status
Get the status and detailed tracking logs for a specific transactional email.
GET
/
webhook
/
mail
/
status
cURL
curl --request GET \
--url https://webhook.cocoonmail.com/webhook/mail/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://webhook.cocoonmail.com/webhook/mail/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://webhook.cocoonmail.com/webhook/mail/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://webhook.cocoonmail.com/webhook/mail/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://webhook.cocoonmail.com/webhook/mail/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://webhook.cocoonmail.com/webhook/mail/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://webhook.cocoonmail.com/webhook/mail/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://webhook.cocoonmail.com/webhook/mail/status");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);using RestSharp;
var options = new RestClientOptions("https://webhook.cocoonmail.com/webhook/mail/status");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"message": "Mail status data fetched successfully",
"data": {
"x_message_id": "123e4567-e89b-12d3-a456-426614174000",
"mail_content": "<p>Hello John, welcome to our platform!</p>",
"subject": "Welcome to Our Platform",
"name": "John Doe",
"sent": true,
"sent_at": "2026-03-20T10:15:30.000Z",
"bounced": false,
"bounced_at": null,
"bounced_error": null,
"unsubscribed": false,
"unsubscribed_at": null,
"delivered": true,
"delivered_at": "2026-03-20T10:16:05.000Z",
"open": true,
"opened_count": 3,
"bounce_type": null,
"clicked": true,
"clicked_count": 2,
"sendable": true,
"failed": false,
"smtp_code": "250",
"smtp_error": null,
"email": "john.doe@example.com",
"transactional_mail_id": "trns-abc123xyz789",
"created": "2026-03-20T10:14:50.000Z",
"transactional_name": "Welcome Email Campaign",
"scheduled_at": "2026-03-20T10:15:00.000Z",
"sender": "email_address",
"tracking_logs": [
{
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/122.0.0.0 Safari/537.36",
"client_family": "Chrome",
"client_version": "122.0.0.0",
"os_name": "Windows",
"os_version": "10",
"device_type": "Desktop",
"ip_address": "192.168.1.1",
"created": "2026-03-20T10:17:10.000Z",
"type": "OPEN"
},
{
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Version/17.0 Mobile Safari/604.1",
"client_family": "Mobile Safari",
"client_version": "17.0",
"os_name": "iOS",
"os_version": "17.0",
"device_type": "Mobile",
"ip_address": "192.168.1.2",
"created": "2026-03-20T10:18:25.000Z",
"type": "CLICK"
}
]
}
}
{
"message": "Bad request"
}
{
"detail": "Authentication credentials were not provided."
}
Email Status
Use this endpoint to check the delivery status of a specific email message.Parameters
| Name | In | Required | Description |
|---|---|---|---|
| message_id | query | Yes | Unique identifier of the email |
Response fields
| Status Code | Description |
|---|---|
| 200 | Successful retrieval of email status |
| 400 | Bad request (invalid message_id format) |
| 401 | Authentication required |
| 500 | Internal server error |
{
"message": "Mail status data fetched successfully",
"data": {
"x_message_id": "123e4567-e89b-12d3-a456-426614174000",
"mail_content": "<p>Hello John, welcome to our platform!</p>",
"subject": "Welcome to Our Platform",
"name": "John Doe",
"sent": true,
"sent_at": "2026-03-20T10:15:30.000Z",
"bounced": false,
"bounced_at": null,
"bounced_error": null,
"unsubscribed": false,
"unsubscribed_at": null,
"delivered": true,
"delivered_at": "2026-03-20T10:16:05.000Z",
"open": true,
"opened_count": 3,
"bounce_type": null,
"clicked": true,
"clicked_count": 2,
"sendable": true,
"failed": false,
"smtp_code": "250",
"smtp_error": null,
"email": "john.doe@example.com",
"transactional_mail_id": "trns-abc123xyz789",
"created": "2026-03-20T10:14:50.000Z",
"transactional_name": "Welcome Email Campaign",
"scheduled_at": "2026-03-20T10:15:00.000Z",
"sender": "email_address",
"tracking_logs": [
{
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/122.0.0.0 Safari/537.36",
"client_family": "Chrome",
"client_version": "122.0.0.0",
"os_name": "Windows",
"os_version": "10",
"device_type": "Desktop",
"ip_address": "192.168.1.1",
"created": "2026-03-20T10:17:10.000Z",
"type": "OPEN"
},
{
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Version/17.0 Mobile Safari/604.1",
"client_family": "Mobile Safari",
"client_version": "17.0",
"os_name": "iOS",
"os_version": "17.0",
"device_type": "Mobile",
"ip_address": "192.168.1.2",
"created": "2026-03-20T10:18:25.000Z",
"type": "CLICK"
}
]
}
}
{
"message": "Bad request"
}
{
"detail": "Authentication credentials were not provided."
}
⌘I