Skip to main content

Create Auto-Reponse Setting

POST 
/messaging_profiles/:profile_id/autoresp_configs

Create Auto-Reponse Setting

Request

Path Parameters

    profile_id Profile Idrequired

Body

required

    op Op (string)required

    Possible values: [start, stop, info]

    keywords string[]required
    resp_text Resp Text (string)
    country_code Country Code (string)required

Responses

200: Successful Response

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/messaging_profiles/:profile_id/autoresp_configs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"op": "start",
"keywords": [
"keyword1",
"keyword2"
],
"resp_text": "Thank you for your message",
"country_code": "US"
}'

Response samples


{
"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"
}
}