Retrieve a single SMS message
Returns the delivery status and details of a single SMS message owned by the authenticated user.
apiKeyAuthX-Api-Key<token>Your API key, sent as X-Api-Key. Format bsk_<key_id>.<secret>. Create one in the dashboard under Settings → Developer tools.
id*stringA UUID string identifying this Message.
uuidMessage retrieved successfully.
application/json- response
id*stringuuidbody*stringThe text to send. message is accepted as an alias.
traffic_class?stringpromotional (default, shared sender ID) or transactional (OTPs, receipts, alerts; needs approval, sent from your own sender ID). See GET /sending-profile.
promotional- Promotionaltransactional- Transactional
"promotional""promotional""transactional"sender_id*stringprice*stringcurrency*|The currency of the message
batch_id*|The send this message was part of
uuidmessage_id*|The id of the message
recipient*stringresponse_code*|The response code from the delivery
response_description*|The response description from the delivery
status*stringDispatch status of the message
pending- Pendingsent- Sentdelivered- Deliveredbounced- Bouncedfailed- Failedretrying- Retrying
"pending""sent""delivered""bounced""failed""retrying"duration_ms*|Measured time, in milliseconds, the provider took to respond to this message's send request. Null until a result comes back (or forever, for messages that ran out of retries without ever getting one).
created_at*stringdate-timeupdated_at*stringdate-timecurl -X GET 'https://api.softlinksms.co.ke/api/v1/sms/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "body": "string", "traffic_class": "promotional", "sender_id": "string", "price": "string", "currency": "string", "batch_id": "4da22c97-b7d5-4e31-8c3a-03870ebc7b20", "message_id": "string", "recipient": "string", "response_code": 0, "response_description": "string", "status": "pending", "duration_ms": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}