List message deliveries

Returns one delivery per recipient: its status, attempts, delivery times, and why it failed or is waiting.

GET
/v1/messages/{id}/deliveries

Returns one delivery per recipient: its status, attempts, delivery times, and why it failed or is waiting.

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
items*array<>
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
{  "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"    }  ]}

Related documentation