Webhooks & forwarders
Webhooks & forwarders
A task forwarder delivers a task’s run result to somewhere outside Rightbrain automatically, every time the task runs. Two types exist: webhook (an HTTP POST to a URL you control) and email (a templated message to one or more recipients).
A forwarder is a project-level resource. You create it once, then attach it to a task by setting the task revision’s task_forwarder_id. From then on, each run of that task fires the forwarder.
All requests use bearer authentication — see Authentication.
List forwarder types
Fetch the available types and their config schemas. This endpoint returns a plain array, not a paginated result set.
Create a forwarder
Webhook
Delivers the run result as an HTTP POST to destination_url, which must be an HTTPS URL. Optionally set a signing_key under config_sensitive — Rightbrain uses it to sign the forwarded payload so your receiver can verify authenticity. The signing key is encrypted at rest.
Attach a forwarder to a task
Set the forwarder’s ID as task_forwarder_id on the task revision when you create or update the task. Every run served by that revision then delivers its result through the forwarder.
Updating a task creates a new revision, and new revisions start inactive — the forwarder takes effect once that revision is active. The attachment is versioned like any other task change. See Versioning & revisions.
Manage forwarders
Common patterns
- Notify a channel. Point a webhook forwarder at an automation platform (Zapier, Make, n8n) that relays into Slack, Teams, or a database.
- Human-readable digest. Use an email forwarder with a
body_templatethat renders the fields your task outputs. - Verified delivery. Set a
signing_keyon a webhook forwarder and verify the signature at your endpoint before trusting the payload.