- List SMS GET
- Send an SMS POST
- List suppressed numbers GET
- Add a number to the SMS suppression list POST
- Check whether a number is suppressed GET
- Retrieve an SMS suppression GET
- Remove a number from the SMS suppression list DELETE
- List received SMS GET
- Retrieve a received SMS GET
- List the organization's phone numbers GET
- Retrieve an SMS GET
- List an SMS's events GET
- Cancel a scheduled SMS POST
Retrieve a received SMS
One message received on a number of the organization and routed to the API key's environment.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
id*stringThe received message's id.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"The received message.
application/json- response
- response
- …
object*"received_sms""received_sms"id*stringfrom*stringWho sent it.
to*stringYour number that received it.
body*stringThe text.
segments*integerSegments the text took.
keyword*|stop: an opt-out (the sender is suppressed in every live environment), start: an opt-in again, help: a request for help. Twilio answers each.
"stop""start""help"nullsandbox*booleanWhether it's a simulated message of a sandbox environment.
created_at*stringdate-timeimport { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.sms.received.get("smsin_01k7c8m4q2f3e9v6t5r1n0p8yz");{ "object": "received_sms", "id": "smsin_01k7c8m4q2f3e9v6t5r1n0p8yz", "from": "+14155550199", "to": "+14155550123", "body": "Thanks, see you then!", "segments": 1, "keyword": null, "sandbox": false, "created_at": "2026-11-10T12:05:00.000Z"}