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 Requestswith aRetry-Afterheader 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 OKwith 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