Legacy API Notice: This documentation covers the Legacy Sent API (v2). While this API remains fully supported, we recommend new integrations use the latest Sent API v3 for enhanced features, improved performance, and long-term support.

Get message details by ID

Retrieves comprehensive details about a specific message using the message ID. Returns complete message data including delivery status, channel information, template details, contact information, and pricing. The customer ID is extracted from the authentication token to ensure the message belongs to the authenticated customer.

GET
/v2/messages/{id}

Path Parameters

id*string
Formatuuid

Response Body

Message details retrieved successfully

application/json
  1. response

Represents a sent message with comprehensive delivery and template information (v2)

id?string

The unique identifier of the message

Formatuuid
customerId?string

The unique identifier of the customer who sent the message

Formatuuid
contactId?string

The unique identifier of the contact who received the message

Formatuuid
phoneNumber?string

The phone number of the recipient (E.164 format)

phoneNumberInternational?string

The phone number in international format

regionCode?string

The region code of the phone number (e.g., US, GB, DE)

templateId?|

The unique identifier of the template used for this message (null if no template was used)

Formatuuid
templateName?string

The display name of the template

templateCategory?string

The category of the template (e.g., MARKETING, UTILITY, AUTHENTICATION)

channel?string

The messaging channel used (e.g., SMS, WhatsApp)

messageBody?|

The message body content with variables substituted

status?string

The delivery status of the message. Outbound: SENT, DELIVERED, FAILED, READ, FILTERED (suppressed by a routing DENY rule), BLOCKED (gated by an account precondition such as insufficient balance or an unmet onboarding entitlement), SCHEDULED (held for a later send time), CANCELLED (a scheduled message you called off before it was released). FILTERED, BLOCKED, SCHEDULED and CANCELLED are policy-driven or customer-driven, expected outcomes and are excluded from the deliverability rate. Inbound (from contact): RECEIVED (terminal).

createdAt?string

The date and time when the message was created

Formatdate-time
price?|

The channel price charged for sending this message

Formatdecimal
activeContactPrice?|

Monthly active-contact markup charged for this message (first message per contact per month)

Formatdecimal
events?array<>|

A chronological list of status change events for this message. Each event includes a status and timestamp. Events are ordered chronologically from oldest to newest.

Example Request
curl -X GET 'https://api.sent.dm/v2/messages/7ba7b820-9dad-11d1-80b4-00c04fd430c8'
Example Response
{  "id": "7ba7b820-9dad-11d1-80b4-00c04fd430c8",  "customerId": "550e8400-e29b-41d4-a716-446655440000",  "contactId": "550e8400-e29b-41d4-a716-446655440002",  "phoneNumber": "+1234567890",  "phoneNumberInternational": "+1 234-567-8900",  "regionCode": "US",  "templateId": "550e8400-e29b-41d4-a716-446655440003",  "templateName": "Welcome Message",  "templateCategory": "UTILITY",  "channel": "WhatsApp",  "messageBody": {    "header": null,    "content": "Welcome to our service, John! We're excited to have you.",    "footer": null,    "buttons": null,    "subject": null,    "media": null,    "headerMedia": null  },  "status": "DELIVERED",  "createdAt": "2026-11-29T11:49:41.19849+00:00",  "price": 0.0055,  "activeContactPrice": 0.015,  "events": [    {      "status": "QUEUED",      "timestamp": "2026-11-29T11:49:41.1985507+00:00",      "description": "Message queued for sending"    },    {      "status": "SENT",      "timestamp": "2026-11-29T11:49:46.1985699+00:00",      "description": "Message sent to WhatsApp"    },    {      "status": "DELIVERED",      "timestamp": "2026-11-29T11:49:51.1985704+00:00",      "description": "Message delivered to recipient"    },    {      "status": "READ",      "timestamp": "2026-11-29T11:54:41.1985705+00:00",      "description": "Message read by recipient"    }  ]}