Skip to main content
The Connexease Gateway enforces rate limits per API key to align with Meta’s Cloud API tier allowances and protect infrastructure stability. Limits are applied using a sliding window algorithm — not a fixed clock window — so bursts at interval boundaries are handled fairly. This page explains the default limits, how to read the response headers, what to expect when a limit is exceeded, and two practical strategies for high-volume campaigns.

Default Limits

Limits are applied per API key (per application), not globally.
These limits are configurable. Contact the Connexease team for Enterprise plan options.

Response Headers

Every successful request to /v1/wa/message includes remaining quota information:

When a Limit Is Exceeded

params Fields:
If you receive limit_type: "min", your per-minute quota is exhausted even if the per-second limit is fine. Spread your traffic more evenly throughout the minute.

How It Works

The Gateway uses a true sliding window algorithm backed by Redis sorted sets. Each request adds a timestamped entry; expired entries are pruned before counting. This means:
  • No sudden spikes at the start of each clock second (unlike fixed windows).
  • The limit reflects actual throughput over the trailing window.
  • The per-second and per-minute windows are independent.

Handling 429 Responses

Strategy 1 — Exponential Backoff (Short Campaigns)

Strategy 2 — Queue-Based Throttling (High-Volume Campaigns)

Proactive throttling keeps you safely below the limit without ever hitting 429.

Relationship to Meta Cloud API Tiers

The Gateway’s default 80 req/s limit aligns with Meta’s Tier 1 MPS (Messages Per Second) allowance.
As your Meta tier increases, your Gateway limit can be raised accordingly. Apply through Meta Business Manager first, then contact the Connexease team to update your limit.

Tips

Monitor X-RateLimit-sec-Remaining. Start proactive throttling when it drops below 10.
Before a bulk send, estimate your TPS: total_messages / campaign_duration_seconds < 72 to stay within the safe margin.
If you consistently receive limit_type: "min", your per-minute quota is insufficient. Contact the Connexease team for an Enterprise plan.