curl --request GET \
--url https://api.senderkit.com/v1/messages/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.senderkit.com/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.senderkit.com/v1/messages/{id}', 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://api.senderkit.com/v1/messages/{id}",
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://api.senderkit.com/v1/messages/{id}"
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://api.senderkit.com/v1/messages/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.senderkit.com/v1/messages/{id}")
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_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicId": "msg_0a1b2c3d4e5f6g7h",
"templateSlug": "<string>",
"channel": "email",
"status": "scheduled",
"livemode": true,
"recipient": "<string>",
"vars": {},
"metadata": {},
"fromOverride": "<string>",
"fromNameOverride": "<string>",
"interpolate": true,
"pinnedVersion": 123,
"provider": "<string>",
"providerConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"providerMessageId": "<string>",
"latencyMs": 123,
"openedAt": "2023-11-07T05:31:56Z",
"clickedAt": "2023-11-07T05:31:56Z",
"error": "<string>",
"timeline": [
{
"t": "2023-11-07T05:31:56Z",
"e": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"scheduledAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}Get a message
Retrieve a single message by its public ID. The message must belong to the authenticated workspace and match the API key’s environment (live or test).
curl --request GET \
--url https://api.senderkit.com/v1/messages/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.senderkit.com/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.senderkit.com/v1/messages/{id}', 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://api.senderkit.com/v1/messages/{id}",
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://api.senderkit.com/v1/messages/{id}"
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://api.senderkit.com/v1/messages/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.senderkit.com/v1/messages/{id}")
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_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicId": "msg_0a1b2c3d4e5f6g7h",
"templateSlug": "<string>",
"channel": "email",
"status": "scheduled",
"livemode": true,
"recipient": "<string>",
"vars": {},
"metadata": {},
"fromOverride": "<string>",
"fromNameOverride": "<string>",
"interpolate": true,
"pinnedVersion": 123,
"provider": "<string>",
"providerConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"providerMessageId": "<string>",
"latencyMs": 123,
"openedAt": "2023-11-07T05:31:56Z",
"clickedAt": "2023-11-07T05:31:56Z",
"error": "<string>",
"timeline": [
{
"t": "2023-11-07T05:31:56Z",
"e": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"scheduledAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{}
],
"limit": 123
}
}Authorizations
API key with an sk_live_ or sk_test_ prefix.
Path Parameters
Public message ID (e.g. msg_...).
Response
The message.
A message row. vars, metadata, and timeline are JSON.
"msg_0a1b2c3d4e5f6g7h"
Null for raw sends.
email, sms, push, web-push Lifecycle status of a message. scheduled is the initial status for a
send with a future scheduledAt; queued is the initial status for an
immediate send. canceled is terminal and reached when a scheduled or
queued message is canceled before dispatch.
suppressed means the provider accepted the request but never attempted
delivery — the recipient address failed validation, or was already
suppressed for this sender. It is distinct from failed, which is a
bounce reported by the receiving mail server.
scheduled, queued, rendered, dispatched, sent, delivered, failed, opted_out, suppressed, blocked, canceled Caller-supplied tags/IDs. Values must be string, number, or boolean.
Show child attributes
Show child attributes
Raw sends only — whether Mustache interpolation was run over the inline content. Always false for template sends.
Template sends only — the explicit template version pinned by the caller, or null when resolved by environment.
First provider-reported open (email open tracking), or null. Set once; later opens don't update it.
First provider-reported link click, or null. Set once; later clicks don't update it.
Show child attributes
Show child attributes
When the send was scheduled for, or null for an immediate send.
The Idempotency-Key supplied on the send request, or null if none was provided.