List inbound rules

Inbound SMS rules from Message Settings, such as the STOP rule, in the order ClickSend runs them.

GET https://cotlet.dev/api/v1/clicksend/inbound-rules

read

Returns the rules under Message Settings > SMS/MMS > Inbound Rules in creation order, which is the order ClickSend runs them. Each rule has the dedicated number it applies to, how it matches (Match For), the search term, the action (for example MOVE_CONTACT or AUTO_REPLY) and the list it moves contacts to. An account can have any number of rules, but only 10 matching rules trigger for one incoming message.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/clicksend/inbound-rules \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("clicksend", "list_inbound_rules")
Node.js
const result = await cotlet.call('clicksend', 'list_inbound_rules');
CLI
cotlet call clicksend list_inbound_rules

Example response

JSON

{
  "rules": [
    {
      "name": "STOP",
      "number": "+15550100188",
      "match_for": "Message starts with",
      "search_term": "Stop",
      "action": "MOVE_CONTACT",
      "contact_list": "Opt-Out List"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.