Routes, Persons & Auth
Three command groups for access and routing:omni routes controls which agent handles which chat, omni persons manages the contact directory, and omni auth/omni keys handle authentication and API key lifecycle.
Route Commands
Routes determine which AI agent handles messages for a specific chat or person.omni routes list
List agent routes for an instance.
omni routes get
Get route details.
omni routes create
Create a new agent route.
omni routes update
Update an existing route. Accepts the same options as create.
omni routes delete
Delete a route.
omni routes test
Test which route would resolve for a given instance, chat, and/or person.
omni routes metrics
View route cache metrics.
Person Commands
omni persons search
Search the person directory.
omni persons get
Get full person details.
omni persons presence
Get person presence and activity info.
omni persons update
Update person fields.
omni persons merge
Merge two person records into one. The source person is deleted and all identities transfer to the target. Use this to deduplicate contacts that represent the same person across different instances.
omni persons link
Link two platform identities to the same person. Useful when the same person has accounts on different channels (WhatsApp, Telegram, etc.) that Omni has not auto-matched.
omni persons unlink
Remove a platform identity from its person record.
Auth Commands
omni auth login
Save API credentials.
omni auth status
Show current authentication status.
omni auth logout
Clear stored credentials.
omni auth recover
Recover API key when auth is invalid. Requires local PM2 access.
API Key Commands
omni keys create
Create a new API key with scoped permissions.
omni keys list
List API keys.
omni keys get
Get API key details.
omni keys update
Update an API key.
omni keys revoke
Revoke an API key.
omni keys delete
Permanently delete an API key.
omni persons merge and omni persons link rewrite the canonical person identity. Downstream automations keyed on the merged-away personId will start receiving events under the surviving ID — coordinate with anyone who built dashboards or alerts on those IDs before merging.See also
Routes (concept)
Routing rules, priorities, and resolution order.
Auth & API keys
omni keys quick reference and agent-side key usage.Webhooks
Inbound auth surfaces for custom integrations.
Instances
Per-instance access and identity model.