Skip to main content
PUT
JavaScript

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

Unique identifier of the profile.

autoresp_cfg_id
string<uuid>
required

Unique identifier of the autoresp cfg.

Body

application/json
op
enum<string>
required

What a matching inbound message does: stop opts the sender out (creates a block rule), start opts them back in (removes it), and info only sends resp_text.

Available options:
start,
stop,
info
keywords
string[]
required

Keywords that trigger this rule, 1 to 20 characters each. Matching ignores case and surrounding spaces, and a keyword can appear in only one rule per messaging profile and country_code. Reserved keywords can only be used with one op: STOP, STOPALL, STOP ALL, END, CANCEL, UNSUBSCRIBE, QUIT, REVOKE, OPT OUT, OPTOUT and OPT-OUT with stop; START and UNSTOP with start; HELP with info. A rule created before these limits may keep an existing keyword that breaks them when updated with the same op.

Minimum array length: 1
Minimum string length: 1
Example:
country_code
string
required

ISO 3166-1 alpha-2 code of the sender's country the rule applies to, or * for every country. A rule for the sender's country takes precedence over a * rule, keyword by keyword. A * rule must include its op's default keyword, exactly as written: STOP for stop, START for start, HELP for info.

Example:

"US"

resp_text
string

Reply sent to the sender when the rule matches.

Example:

"Thank you for your message"

Response

Successful Response

data
AutorespConfigSchema · object
required