Create rule
Rules
Create rule
Create a published rule.
POST
Create rule
Creates a published
Rule.
Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.application/jsonBody parameters
Rule name.
Natural-language routing description. This is the text the planner uses when deciding whether the rule should run.
Optional agent IDs to assign after creation.
Optional rule type. Current values are
intent and business. Send it explicitly rather than relying on the current default.Optional source. Current public enum value is
widget.Optional trigger type. Current public enum value is
on_escalation.Optional template rule ID.
Response
Returns the createdRule.
Errors
400 Bad Request
400 Bad Request
The body is malformed, a referenced agent ID is invalid, or the
flowConfig references a missing or unsupported action or widget form.401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
write scope required for this route.500 Internal Server Error
500 Internal Server Error
Fini failed while creating the rule in storage.

