Skip to main content
Cargo webhooks are signed HTTP callbacks. Cargo POSTs JSON to a URL you control when a batch finishes, when a monitored tool fails, or when an external system pushes an event into a model.

Batch and tool completion

When you create a tool batch you may pass webhookUrl and, optionally, webhookSecret:
webhookUrl is optional. When set, results are POSTed there on completion. When webhookSecret is set, Cargo signs every delivery with HMAC-SHA256 in the X-Cargo-Signature header (sha256=<hex>). Verify the signature before trusting a delivery:
See Triggering a tool for the rest of the batch API.

Incoming HTTP listeners

The HTTP integration can listen for webhooks from an external system. Cargo issues a unique URL; a POST to that URL inserts or updates rows on a model and can enrol them in a play. See HTTP integration.

Monitoring

Alerts and tool monitors can POST to your own systems on failure. See Monitoring a tool.