Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Successful Response
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const autoRespConfigResponse = await client.messagingProfiles.autorespConfigs.create('profile_id', {
country_code: 'US',
keywords: ['keyword1', 'keyword2'],
op: 'start',
});
console.log(autoRespConfigResponse.data);{
"data": {
"op": "start",
"keywords": [
"START"
],
"resp_text": "Hello there!",
"country_code": "US",
"id": "c2298f86-a4dc-4cac-b6b6-4a3d01c290fa",
"created_at": "2023-03-22T00:06:49.068817+00:00",
"updated_at": "2023-03-22T00:06:49.068817+00:00"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const autoRespConfigResponse = await client.messagingProfiles.autorespConfigs.create('profile_id', {
country_code: 'US',
keywords: ['keyword1', 'keyword2'],
op: 'start',
});
console.log(autoRespConfigResponse.data);{
"data": {
"op": "start",
"keywords": [
"START"
],
"resp_text": "Hello there!",
"country_code": "US",
"id": "c2298f86-a4dc-4cac-b6b6-4a3d01c290fa",
"created_at": "2023-03-22T00:06:49.068817+00:00",
"updated_at": "2023-03-22T00:06:49.068817+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?