Skip to main content
POST
Create a routing rule

Authorizations

Authorization
string
header
required

API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, billing:write, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.

Body

application/json

A routing rule. When it matches, it sets the group and, if given, the Inbox category and the priority. The first matching rule of a set decides.

name
string
required
Required string length: 1 - 60
enabled
boolean
required
match
enum<string>
required

all: every condition must hold. any: one is enough.

Available options:
all,
any
conditions
object[]
required
Required array length: 1 - 20 elements
group_id
string<uuid>
required

Workspace group the conversation goes to (listWorkspaceGroups).

assistant_id
string<uuid> | null

Assistant that gets this rule in its own set; omit or null for the workspace set. An assistant with at least one own rule uses only its own set.

category_id
string<uuid> | null

Inbox category to add; it must belong to the category set of the rule (listHistoryCategories).

priority
enum<string> | null

Priority to set. Routing only raises a priority.

Available options:
low,
normal,
high,
urgent

Response

The created rule.

data
object
required