Rivier/ Reference/ inbox

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
    • namestringrequired
      At most 80 characters.
    • enabledboolean
    • positioninteger
      At least 0. At most 1000.
    • scopeInboxstring (uuid) or null
    • scopeMailboxstring or null
    • matchstring
      One of: all, any.
    • conditionslist of objectrequired
      • fieldstringrequired
        One of: from, from_domain, to, subject, body, mailbox, has_attachment, is_reply, category, sentiment, lang, label.
      • opstringrequired
        One of: contains, not_contains, equals, not_equals, starts_with, ends_with, matches, is_true, is_false.
      • valuestring
        At most 200 characters.
    • actionslist of objectrequired
    • stopboolean

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown