Create a channel route

View as Markdown

Adds a route to the channel, binding deliveries to a playbook target with optional payload mapping and a RUN-IF gate. Requires trigger:manage.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

channelIdstringRequired

Request

This endpoint expects an object.
namestringRequired1-120 characters
targetobjectRequired
payloadMappingmap from strings to strings or nullOptional

Response

The created route.
routeobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error