List message deliveries
Returns per-recipient queueing, provider acceptance (sentAt), delivery and read times, failures and waits.
GET
Returns per-recipient queueing, provider acceptance (sentAt), delivery and read times, failures and waits. Includes recipients skipped at admission and the first reply linked by a message reference. Mailbox endpoints and threads require mailbox read access.
apiKeyheader
x-api-key<token>id*stringMatch
^msg_[0-9a-hjkmnp-tv-z]{16,24}$MessageDeliveryList
application/json- response
id*MessageIdMatch
^msg_[0-9a-hjkmnp-tv-z]{16,24}$status*stringValue in
"pending""scheduled""queued""processing""sent""delivered""read""failed""bounced""complained"skippedRecipients*array<>items*array<>reply*import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.messages.listDeliveries({
"id": "example"
});Example Response
{
"id": "string",
"status": "pending",
"skippedRecipients": [
{
"address": "string",
"reason": "bounce",
"topicId": "string"
}
],
"items": [
{
"id": "string",
"recipient": "string",
"status": "pending",
"attemptCount": 0,
"waitReason": "rate",
"nextRetryAt": "string",
"sentAt": "string",
"deliveredAt": "string",
"readAt": "string",
"failedAt": "string",
"error": {
"code": "string",
"message": "string",
"retryable": true
},
"estimatedProviderCost": {
"amount": "string",
"currency": "string",
"billingMode": "pass_through"
},
"createdAt": "string",
"updatedAt": "string",
"queuedAt": "string"
}
],
"reply": {
"endpoints": [
{
"mailboxId": "string",
"endpointId": "string",
"address": "string"
}
],
"received": {
"messageId": "string",
"receivedAt": "string",
"thread": {
"mailboxId": "string",
"threadId": "string"
}
}
}
}