STACK receives a provider webhook, verifies its signature, deduplicates the event, scans selected content, records the result, and forwards only when the configured policy allows it.
curl -X POST https://api.getstack.run/v1/operator/inbound-webhooks \
-H "Authorization: Bearer $STACK_TOKEN" -H "Content-Type: application/json" \
-d '{"provider":"generic","agent_id":"agt_123","forward_url":"https://worker.example/webhook"}'Supported providers are agentmail and generic. The response returns the hosted URL and an HMAC secret once. Store the secret in the provider. Do not put it in a URL, log, or client bundle. Omit forward_url for scan-and-record only.
Creating an endpoint chooses where data can leave. Agent-bearing contexts receive 403. Revocation remains agent-reachable because it only removes access.
A partner grant can create an endpoint only for a provider in its provider allowlist and an agent created by that grant. List, get, and revoke stay restricted to resources created by the same grant.