You can use Text.lk – SMS Gateway Sri lanka’s SMS API to retrieve information of an existing inbound or outbound SMS message.
You only need to supply the unique message id that was returned upon creation or receiving.
API Endpoint #
https://app.text.lk/api/v3/sms/{uid}
HTTPParameters #
Parameter | Required | Type | Description |
---|---|---|---|
uid | Yes | string | A unique random uid which is created on the Text.lk – SMS Gateway Sri Lanka platform and is returned upon object creation. |
Example request #
curl -X GET https://app.text.lk/api/v3/sms/{uid}\
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
HTTPExample Response #
Returns a contact object if the request is successful.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTPIf the request fails, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTP