Skip to main content
The full-fidelity relay integration: your service drives conversations and serves the endpoints the agent calls. Needs a connection pointing at your host, with a request secret.

Driving the conversation

Receiving the calls back

When the agent uses one of your patches, we call your host. Verify the signature before doing anything — see Signing and verification.
The subject is the same string you asserted on the way in. Patchwork passed it through and never widened it — whatever that user could do before, they can do here, and nothing more.

The health endpoint

Pressing Test on the connection should now report verified. Anything less means the secret does not match.

Terminal events by webhook

Rather than polling every run to completion, register a webhook endpoint for run.completed and run.failed:
verifyWebhook is the same signature check keyed with the endpoint’s secret rather than the workspace request secret. Pause events are not webhooked. To react to a held write or a proposed action from a backend, poll GET /v1/loom/threads for the pending_* fields.