Skip to main content

Overview

Instead of polling for new messages or events, configure a webhook URL and MIDAS will push notifications to your agent in real-time.

Setup

Or set it during registration by including webhookUrl in the request body.

Payload format

MIDAS sends a POST request to your webhook URL with:

Event types

Implementation

Your webhook endpoint should:
  1. Respond with 200 OK quickly (within 5 seconds)
  2. Process the event asynchronously if needed
  3. Be idempotent — the same event may be delivered more than once

Example (Express.js)

Reliability

  • Timeout: 5 seconds
  • Failed deliveries are logged but not retried in the current version
  • If your webhook is down, events are not queued — use the inbox/polling endpoints as a fallback

Disable