Skip to main content

Get Transactional SMS

Retrieve the full message and delivery information for a transactional SMS in the API key's workspace. Logs and message content are kept for 90 days.


Endpoint​

GET https://api.campaignlark.com/v1/sms/:id

Path Parameters​

ParameterTypeRequiredDescription
idstringrequiredTracking ID returned by Send Transactional SMS, not a contact, campaign, or job ID.

Sample Request​

GET https://api.campaignlark.com/v1/sms/69b27e24be03b743d4b9b7b3
Authorization: Bearer YOUR_API_KEY

Response​

Success — 200 OK​

{
"data": {
"id": "69b27e24be03b743d4b9b7b3",
"status": "DELIVERED",
"to": "+14155552671",
"parts": 1,
"charge": "0.01250",
"reference": "lead-123",
"created_at": "2026-03-12T08:49:00Z",
"message": "Your verification code is 482691. It expires in 10 minutes.",
"queued_at": "2026-03-12T08:49:00Z",
"sent_at": "2026-03-12T08:49:02Z",
"delivered_at": "2026-03-12T08:49:40Z",
"failed_at": null,
"failure_reason": ""
}
}

Message Detail Object​

Includes every field in the list message object, plus:

FieldTypeDescription
messagestringFull message body supplied to the send endpoint.
queued_atstring | nullRFC3339 queuing timestamp; also exposed as created_at.
sent_atstring | nullRFC3339 timestamp when the provider accepted the message.
delivered_atstring | nullRFC3339 delivery timestamp, if recorded.
failed_atstring | nullRFC3339 final failure timestamp, if recorded.
failure_reasonstringRecorded failure reason, or "" when none is recorded.

Timestamps for events that have not occurred are null, not omitted. SENT means provider acceptance, not confirmed delivery. A message can fail before it is sent, so a failed message need not have a sent_at timestamp.


Errors​

StatusMessageCause
400This SMS message wasn't found. Check the ID; messages are kept for 90 days.The tracking ID is unknown, belongs to another workspace/type, or the record has expired.
400We couldn't load this SMS message. Please try again shortly.The message lookup failed.

The authentication, rate-limit, and error-envelope rules also apply. A missing record returns 400, not 404.