GET
/messages/{id}
Retrieve a message belonging to your account and the sending domain associated with your Sending API key.
Endpoint
GET https://api.sendzovo.com/v1/messages/{id}
Example request
curl "https://api.sendzovo.com/v1/messages/MESSAGE_ID" \
-H "Authorization: Bearer YOUR_SENDING_API_KEY"
<?php
require 'vendor/autoload.php';
use Sendzovo\Client;
$sendzovo = Client::withSendingKey(
$_ENV['SENDZOVO_SENDING_API_KEY']
);
$message = $sendzovo->messages()->get(
'MESSAGE_ID'
);
print_r($message);
const response = await fetch(
"https://api.sendzovo.com/v1/messages/MESSAGE_ID",
{
headers: {
"Authorization":
"Bearer YOUR_SENDING_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.get(
"https://api.sendzovo.com/v1/messages/MESSAGE_ID",
headers={
"Authorization":
"Bearer YOUR_SENDING_API_KEY"
},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue(
"Bearer",
"YOUR_SENDING_API_KEY"
);
var response = await client.GetAsync(
"https://api.sendzovo.com/v1/messages/MESSAGE_ID"
);
var result =
await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
Message ID
Use the ID returned by the original send request. The exact status values returned by this endpoint should be handled according to your API response contract.
Ready to send?
Start building
Create a free Sendzovo account, verify your domain and send your first email in minutes.