Rate limits
Two budgets apply: a general limit on every REST endpoint, and a stricter per-workspace limit on outbound message sends. Exceeding either returns 429 Too Many Requests.
Your limits depend on your app
Rate limits are configured per app when the app is registered in myCRMSIM, so they vary from one app to another. The numbers below are the defaults every new app starts with — yours may be higher or lower. Always read the X-RateLimit-* response headers rather than hard-coding these values, and contact myCRMSIM if your integration needs a higher budget.
Standard API limits
Applied per app, per installation — that is, each user who installs your app gets their own budget, and one installation exhausting it does not affect the others. Covers every endpoint, message sends included, on every path prefix your token works on. Once the daily budget is used, every request is refused with a 429 until it resets.
| Default limit | Window | Scope |
|---|---|---|
| 100 requests | 10 seconds (burst) | per app, per installation |
| 200,000 requests | 1 UTC day (resets at 00:00 UTC) | per app, per installation |
Usage headers
Every API response that passes authentication includes headers that report your current budget, so you can pace requests without guessing (a 401 or 402 is refused before the budget is checked, so it carries none):
| Header | Description |
|---|---|
X-RateLimit-Limit-Daily | Your total permitted daily allowance. |
X-RateLimit-Daily-Remaining | The remaining requests available for the current day. |
X-RateLimit-Interval-Milliseconds | The time window used for tracking burst requests. |
X-RateLimit-Max | The maximum request limit within that burst window. |
X-RateLimit-Remaining | The remaining requests available in the current burst window. |
429 responses additionally carry a Retry-After header with the number of seconds to wait before retrying.
Message send limits
POST /api/v1/ext/messages and POST /api/v1/ext/messages/scheduled also have their own budget, on top of the standard limits, enforced on a sliding window per workspace:
| Limit | Window | Scope |
|---|---|---|
| 30 messages | 15 minutes (sliding) | per workspace |
The 31st send inside any 15-minute window is refused with a 429; wait for older sends to leave the window before retrying. Attachments are limited to 1 per message with a maximum file size of 5 MB.
The 429 response
The standard limits (burst or daily):
{
"success": false,
"message": "Daily rate limit exceeded: 200,000 requests per day (resets 00:00 UTC).",
"error": "RateLimitExceeded"
}The message send limit:
{
"message": "Too many queued messages for this workspace",
"error": "RateLimitExceeded"
}Both carry "error": "RateLimitExceeded" — check that field rather than the message text.
Handling 429s
A 429 is retryable — the request was refused, not failed. Wait, then retry with exponential backoff and jitter. For message sends, the window is 15 minutes, so pace bulk sends at or below 2 messages per minute per workspace rather than bursting.
async function withBackoff(fn, maxRetries = 5) {
for (let attempt = 0; attempt <= maxRetries; attempt++) {
const res = await fn();
if (res.status !== 429) return res;
const delay = Math.min(2 ** attempt * 1000, 60_000) + Math.random() * 1000;
await new Promise((r) => setTimeout(r, delay));
}
throw new Error('Rate limited after retries — slow the request rate.');
}Bulk sending?
Spread sends evenly instead of bursting: a client-side queue that releases one message every ~30 seconds per workspace will never hit the messaging limit.
