Skip to Content
Platform & ComplianceRate Limits & Idempotency

Rate Limits & Idempotency

API Rate Limiting

  • Every API key is rate-limited per minute (API_RATE_LIMIT, default 600 requests/minute).
  • Requests exceeding the limit receive 429 Too Many Requests with a Retry-After header indicating how many seconds to wait.

Per-Channel Send Pacing

Outbound sends are paced per channel (default 5 messages/second, or 10 messages/second on WhatsApp, configurable via rate_limit_per_second) by delaying background jobs—never by dropping messages.

If an upstream provider (such as Meta or Slack) returns 429, msend honors its Retry-After header and reschedules delivery automatically.

Idempotency Keys

Include an Idempotency-Key header on POST /api/v1/messages and POST /api/v1/conversations/:id/messages:

  • Same key + same request body: Returns 200 OK with the original message instead of sending a duplicate.
  • Same key + different request body: Returns 422 Unprocessable Entity.

This makes it safe for agents to retry after network timeouts.

Last updated on