Create a routing rule
Requires EDITOR. providerId must reference an existing channel.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Tenant project id (row-level isolation on every query).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
priority
integer
enabled
boolean
matchJson
object
key
additional properties
any
providerId
required
string
Responses
Section titled “Responses”Created rule.
Media typeapplication/json
object
rule
object
id
string
projectId
string
name
string
priority
integer
enabled
boolean
matchJson
object
key
additional properties
any
providerId
string
providerName
string | null
createdAt
string format: date-time
updatedAt
string format: date-time
Request body failed Zod validation.
Media typeapplication/json
Validation error envelope with per-field issues.
object
error
string
issues
Array<object>
object
path
string
message
string
Examplegenerated
{ "error": "example", "issues": [ { "path": "example", "message": "example" } ]}Not authenticated (no valid session/principal).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or belongs to another project — indistinguishable).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}