Skip to main content
GET
/
messaging_profiles
/
{profile_id}
/
autoresp_configs
JavaScript
import Telnyx from 'telnyx';

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

const autorespConfigs = await client.messagingProfiles.autorespConfigs.list(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);

console.log(autorespConfigs.data);
{
  "data": [
    {
      "op": "start",
      "keywords": [
        "START",
        "BEGIN"
      ],
      "resp_text": "Thank you for subscribing US customer.",
      "country_code": "US",
      "id": "677ec1cb-949e-4aeb-a1c3-6d9ddffc1409",
      "created_at": "2023-03-21T23:37:45.858535+00:00",
      "updated_at": "2023-03-21T23:37:45.858535+00:00"
    },
    {
      "op": "stop",
      "keywords": [
        "END",
        "STOP"
      ],
      "resp_text": "You have unsubscribed.",
      "country_code": "US",
      "id": "54b7e19f-98a8-416f-81d1-a2782eade48b",
      "created_at": "2023-03-10T21:54:46.293380+00:00",
      "updated_at": "2023-03-10T21:54:46.293380+00:00"
    },
    {
      "op": "start",
      "keywords": [
        "START"
      ],
      "resp_text": "Thank you for subscribing.",
      "country_code": "*",
      "id": "cfe07be1-2369-433f-be00-eb176008e834",
      "created_at": "2023-03-14T14:46:21.097735+00:00",
      "updated_at": "2023-03-14T14:46:21.097735+00:00"
    }
  ],
  "meta": {
    "page_number": 1,
    "page_size": 5,
    "total_pages": 1,
    "total_results": 3
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

profile_id
string<uuid>
required

Query Parameters

country_code
string
created_at
object

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

updated_at
object

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

Response

Successful Response

List of Auto-Response Settings

data
AutorespConfigSchema · object[]
required
meta
object
required