Skip to main content
GET
/
v1
/
sms
/
{id}
cURL
curl --request GET \
  --url https://api.transmit.dev/v1/sms/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "from": "<string>",
  "to": "<string>",
  "body": "<string>",
  "status": "<string>",
  "segments_count": 123,
  "credits_consumed": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "sent_at": "2023-11-07T05:31:56Z",
  "delivered_at": "2023-11-07T05:31:56Z",
  "customer_charge_dollars": 123,
  "telnyx_total_cost": 123,
  "margin_dollars": 123
}

Authorizations

Authorization
string
header
required

Enter your API key with 'tx_' prefix. Get your API key from the dashboard.

Path Parameters

id
string
required

Response

SMS details retrieved successfully

id
string
required

SMS message ID

from
string
required

Sender phone number

to
string
required

Recipient phone number

body
string
required

Message body

status
string
required

SMS status

segments_count
number
required

Number of SMS segments

credits_consumed
number
required

Credits consumed

created_at
string<date-time>
required

Creation timestamp

sent_at
string<date-time> | null
required

Sent timestamp

delivered_at
string<date-time> | null
required

Delivery timestamp

customer_charge_dollars
number

Amount charged to customer in dollars

telnyx_total_cost
number

Total cost from Telnyx in dollars

margin_dollars
number

Profit margin in dollars