How it works
When a call comes in, Anyreach checks for an inbound-routing config on your organization. If one exists andenabled is true, it runs your workflow_definition, feeds in the call details, and reads the workflow’s output to resolve the agent.
Workflow input
The workflow receives these fields on itsinput step:
Workflow output
The workflow’soutput step returns these fields. Every field is optional.
If the workflow returns neither
reject: true nor a resolvable agent, the config’s fallback agent is used. If there is no fallback agent, the call is disconnected.Config fields
API
All routes are org-scoped — the config is resolved from the organization on the token. There is exactly one config per organization. Authenticate withAuthorization: Bearer <token>; user PATs (pat_) also require X-Anyreach-Org: <organization_id>.
Reading requires the
inbound_routing_configs:read or inbound_routing_configs:manage scope. Creating, updating, and deleting require inbound_routing_configs:manage.
Create
Update
PUT accepts the same fields, all optional — only the fields you send are changed. Set fallback_agent_id to null to remove the fallback agent; fallback_agent_version is cleared automatically when you do.
Related
Telephony overview
Numbers, trunks, and how inbound and outbound calls connect.
Workflows overview
Build the routing workflow and other automation.

