import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
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
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
List of Auto-Response Settings
Show child attributes
start, stop, info "start"
["START", "BEGIN"]"*"
"b8f9c1c0-5b5a-4b1e-8c1c-0b5a4b1e8c1c"
"Thank you for subscribing to our service."
Was this page helpful?