Retrieve a received SMS

GET
/v1/sms/received/{id}

One message received on a number of the organization and routed to the API key's environment.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.

Path Parameters

id*string

The received message's id.

Header Parameters

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.

Value in"2026-10-10"

Response Body

The received message.

application/json
  1. response
object*"received_sms"
Value in"received_sms"
id*string
from*string

Who sent it.

to*string

Your number that received it.

body*string

The text.

segments*integer

Segments 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.

Value in"stop""start""help"null
sandbox*boolean

Whether it's a simulated message of a sandbox environment.

created_at*string
Formatdate-time
import { 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"}