Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const autoRespConfigResponse = await client.messagingProfiles.autorespConfigs.update(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{
profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
country_code: 'US',
keywords: ['keyword1', 'keyword2'],
op: 'start',
},
);
console.log(autoRespConfigResponse.data);{
"data": {
"op": "start",
"keywords": [
"START",
"BEGIN"
],
"resp_text": "Hello there!",
"country_code": "*",
"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"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const autoRespConfigResponse = await client.messagingProfiles.autorespConfigs.update(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{
profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
country_code: 'US',
keywords: ['keyword1', 'keyword2'],
op: 'start',
},
);
console.log(autoRespConfigResponse.data);{
"data": {
"op": "start",
"keywords": [
"START",
"BEGIN"
],
"resp_text": "Hello there!",
"country_code": "*",
"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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Was this page helpful?