Which rules would fire on a conversation, and what they would do
post/workspace/inbox/rules/preview
Which rules would fire on a conversation, and what they would do; a rule not yet saved can be tried. Changes nothing.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
inbox:write- Graphql
Mutation.inboxRulePreview- Sdk
inbox.rule.preview- Cli
inbox rule preview
Request bodyapplication/json, required
- threadIdstring (uuid)required
- ruleobject
- 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
- namestringrequired
Responses
- 200application/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