curl --request GET \
--url https://api.senderkit.com/v1/inbound/messages/{publicId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.senderkit.com/v1/inbound/messages/{publicId}"
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/inbound/messages/{publicId}', 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/inbound/messages/{publicId}",
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/inbound/messages/{publicId}"
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/inbound/messages/{publicId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.senderkit.com/v1/inbound/messages/{publicId}")
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": "rcv_0a1b2c3d4e5f6g7h",
"status": "received",
"channel": "email",
"address": "<string>",
"plusTag": "<string>",
"from": {
"email": "<string>",
"name": "<string>"
},
"to": [
{
"email": "<string>",
"name": "<string>"
}
],
"cc": [
{
"email": "<string>",
"name": "<string>"
}
],
"envelope": {
"from": "<string>",
"to": [
"<string>"
]
},
"subject": "<string>",
"messageId": "<string>",
"inReplyTo": "<string>",
"text": "<string>",
"html": "<string>",
"strippedReply": "<string>",
"truncated": true,
"headers": {},
"attachments": [
{
"index": 123,
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"url": "<string>"
}
],
"verdicts": {},
"sizeBytes": 123,
"rawUrl": "<string>",
"receivedAt": "2023-11-07T05:31:56Z"
}{
"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 received message
Retrieve a single received message, including parsed body, headers, verdicts, and links to its attachments and raw MIME source.
curl --request GET \
--url https://api.senderkit.com/v1/inbound/messages/{publicId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.senderkit.com/v1/inbound/messages/{publicId}"
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/inbound/messages/{publicId}', 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/inbound/messages/{publicId}",
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/inbound/messages/{publicId}"
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/inbound/messages/{publicId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.senderkit.com/v1/inbound/messages/{publicId}")
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": "rcv_0a1b2c3d4e5f6g7h",
"status": "received",
"channel": "email",
"address": "<string>",
"plusTag": "<string>",
"from": {
"email": "<string>",
"name": "<string>"
},
"to": [
{
"email": "<string>",
"name": "<string>"
}
],
"cc": [
{
"email": "<string>",
"name": "<string>"
}
],
"envelope": {
"from": "<string>",
"to": [
"<string>"
]
},
"subject": "<string>",
"messageId": "<string>",
"inReplyTo": "<string>",
"text": "<string>",
"html": "<string>",
"strippedReply": "<string>",
"truncated": true,
"headers": {},
"attachments": [
{
"index": 123,
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"url": "<string>"
}
],
"verdicts": {},
"sizeBytes": 123,
"rawUrl": "<string>",
"receivedAt": "2023-11-07T05:31:56Z"
}{
"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 inbound message ID (e.g. rcv_...).
Response
The received message.
A received message, as returned by the message detail endpoint.
Public inbound message ID.
"rcv_0a1b2c3d4e5f6g7h"
received means the message was stored and the webhook/forward
pipeline ran; dropped means it arrived on a verified inbound domain
but matched no address (mail to an unknown local part); quota_exceeded
means the workspace's inbound quota was hit — the full message row is
still stored, but the webhook/forward pipeline was skipped.
received, dropped, quota_exceeded email, sms, push, web-push Canonical receiving address, or null for catch-all/unmatched mail.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The mail's Message-ID header.
The plain-text reply with quoted history/signature stripped.
Whether the stored body was truncated.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
SES scanning verdicts (e.g. spam/virus/SPF/DKIM), as reported.
Show child attributes
Show child attributes
Authenticated API URL for the raw RFC 822 source. Same auth
requirement as attachment urls.