Skip to Content

List message deliveries

Returns per-recipient queueing, provider acceptance (sentAt), delivery and read times, failures and waits.

GET
/v1/messages/{id}/deliveries

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^msg_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

MessageDeliveryList

application/json
  1. response
id*MessageId
Match^msg_[0-9a-hjkmnp-tv-z]{16,24}$
status*string
Value in"pending""scheduled""queued""processing""sent""delivered""read""failed""bounced""complained"
skippedRecipients*array<>
items*array<>
reply*
Example Request
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"
      }
    }
  }
}

Related documentation