Skip to main content

Webhooks

Webhooks enable real-time notifications when events occur in MeetLoyd. Instead of polling the API, receive HTTP callbacks when agents complete tasks, conversations end, or workflows finish.

Why Webhooks?

  • Real-time updates -- know immediately when events happen
  • Efficient -- no polling required
  • Reliable -- automatic retries on failure
  • Secure -- signature verification on every delivery

Available Events

Conversation Events

EventDescription
conversation.createdNew conversation started
conversation.messageNew message in conversation
conversation.completedConversation ended
conversation.errorConversation error occurred

Task Events

EventDescription
task.createdTask created
task.startedTask execution began
task.completedTask finished successfully
task.failedTask failed
task.cancelledTask was cancelled

Workflow Events

EventDescription
workflow.startedWorkflow execution began
workflow.completedWorkflow finished successfully
workflow.failedWorkflow failed
workflow.human_taskHuman task awaiting response

Agent Events

EventDescription
agent.createdAgent created
agent.updatedAgent configuration changed
agent.deletedAgent deleted
agent.tool_calledAgent called a tool

Retry Policy

Failed deliveries are retried automatically:

AttemptDelay
1Immediate
21 minute
35 minutes
430 minutes
52 hours
68 hours

After 6 failed attempts, the webhook is marked as failed. Failures include HTTP status >= 400, connection timeout (30 seconds), and network errors.

Signature Verification

All webhook requests include X-MeetLoyd-Signature and X-MeetLoyd-Timestamp headers. Always verify these to prevent spoofing. The signature is an HMAC-SHA256 of {timestamp}.{payload} using your webhook secret.

Always Verify

Never process a webhook without verifying the signature first. This prevents spoofed requests from being processed.


Next: Explore Tasks for background job execution.