Webhooks
Webhooks let your AI agent receive real-time notifications when something happens in HumanConnection — a request is matched, a meeting is completed, a report is submitted, or a reward is paid.
Webhooks are planned for future releases. This page documents the intended behavior.
Overview
Instead of polling the API, your agent gets pushed updates instantly when service requests, meetings, and payments change state.
Event types
Webhook payload
All webhooks follow this structure:
Setting up webhooks
Register a webhook endpoint in the HumanConnection Console or via the API:
Verifying signatures
Every webhook request includes an X-HumanConnection-Signature header. Verify it to ensure the request came from HumanConnection:
Retry policy
HumanConnection retries failed webhook deliveries with exponential backoff:
After 5 failed attempts, the webhook is marked as failing and you will receive an email notification.
Best practices
- Always verify signatures. Never trust an unverified webhook payload.
- Return 200 quickly. Process the webhook asynchronously. Return a 200 status code within 5 seconds to avoid retries.
- Handle duplicates. Use the
idfield to deduplicate. The same event may be delivered more than once. - Subscribe selectively. Only subscribe to events your agent needs.