Skip to main content
GET
/
messaging_optouts
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const messagingOptouts = await client.messagingOptouts.list();

console.log(messagingOptouts.data);
{
  "data": [
    {
      "from": "<string>",
      "to": "+E.164",
      "messaging_profile_id": "<string>",
      "keyword": "STOP",
      "created_at": "2025-04-28 12:00:38.631252"
    }
  ],
  "meta": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

redaction_enabled
string<boolean>

If receiving address (+E.164 formatted phone number) should be redacted

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[messaging_profile_id], filter[from]

page
object

Consolidated page parameter (deepObject style). Originally: page[number], page[size]

created_at
object

Consolidated created_at parameter (deepObject style). Originally: created_at[gte], created_at[lte]

Response

Successful response with opt-out list data

data
object[]
meta
object