Make a rule (owner or manager)
post/workspace/inbox/rules
Make a rule (owner or manager): when conditions on the sender, subject, text, mailbox, attachment or language hold, label, assign, route to an agent, set a status, archive or mark as junk.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
inbox:write- Graphql
Mutation.inboxRuleCreate- Sdk
inbox.rule.create- Cli
inbox rule create
Request bodyapplication/json, required
- namestringrequiredAt most 80 characters.
- enabledboolean
- positionintegerAt least 0. At most 1000.
- scopeInboxstring (uuid) or null
- scopeMailboxstring or null
- matchstringOne of: all, any.
- conditionslist of objectrequired
- fieldstringrequiredOne of: from, from_domain, to, subject, body, mailbox, has_attachment, is_reply, category, sentiment, lang, label.
- opstringrequiredOne of: contains, not_contains, equals, not_equals, starts_with, ends_with, matches, is_true, is_false.
- valuestringAt most 200 characters.
- fieldstringrequired
- actionslist of objectrequired
- stopboolean
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring