ATAPI Twin
Pages

Operate

Webhooks

A route can POST a copy of the exchange after it responds.

The route form has a webhook callback URL. After a matched response, API Twin POSTs JSON to that URL and then returns the stub. The body is the method, path, status, and the first 4000 characters of the response. The call waits up to 3 seconds. The response header x-twin-callback is sent or failed. A miss does not call the URL.

The URL has to be a public address in production. Local addresses are rejected unless the deployment explicitly allows them. This is one POST per matched call, not a sequence of callbacks.