Automations
List automations
Returns all keyword automations of the workspace as a JSON array, newest first.
- Bearer API key
- Scope:
reador write - or app session
- Workspace:
X-Tenant-ID(optional with a key)
Headers
AuthorizationstringrequiredYour API key as
Bearer <key>. The wordBearerand the space are case-sensitive. Browser clients signed in to the app use the session cookie instead.X-Tenant-IDuuidoptionalWorkspace id. Optional with an API key (a key always acts in its own workspace); if you send it, it must match the key’s workspace. Required with a session cookie. You can pass
?tenant=<id>instead.
Response
200 OKapplication/json
[]array<Automation>Automations, newest first.
Show child attributesHide child attributes7
iduuidAutomation id.
namestringRule name.
keywordstringKeyword, stored in lower case.
replystringText sent back when the keyword matches.
enabledinteger1when the rule is on,0when it is off.runsintegerHow many times the rule has replied.
created_atintegerCreation time in Unix seconds.
Status codes
- 200OK. An array of automations (not wrapped in an object).
- 401Unauthorized. The API key is unknown, revoked or expired (
invalid or expired API key), or there is no key and no signed-in session (unauthorized). - 402Payment required. Only when subscriptions are enforced and the workspace has no active subscription. The body includes
code: "payment_required". - 403Forbidden. The
X-Tenant-IDheader ortenantquery does not match the API key’s workspace (API key belongs to a different workspace), or a signed-in user is not a member of the workspace (forbidden). - 500Server error. The automations could not be loaded.
How are automations matched?
- Every incoming message (not your own) is lower-cased and checked against the enabled automations.
- A rule matches when its keyword appears anywhere in the message text, so the keyword
pricealso matches “prices?”. - If several rules match, the oldest enabled rule wins and only one reply is sent.
- Each reply increments the rule’s
runscounter.