Rate limits
Requests per minute, and streams open at once
Limits
| Request | Limit | Counted per |
|---|---|---|
POST /v1/commands/{type}, its /check, GET /v1/commands/{commandId} | 600 a minute | Project |
GET /v1/response_stream | 10 connects a minute, 4 open at once | Key |
Every /v1/line-setups route | 30 a minute | Key |
GET /v1/lines/{lineId}/templates | 30 a minute | Key |
GET /v1/messages/{messageId}/receipts | 60 a minute | Key |
GET /v1/lines/{lineId}/health, GET /v1/lines/{lineId}/reputation | 60 a minute | Key |
GET /v1/conversations, GET /v1/conversations/{conversationId} and its /messages | 120 a minute | Key |
POST /v1/conversation-lookup | 30 a minute | Key |
GET /v1/events | 120 a minute | Key |
GET /v1/attachments/{id} | 120 a minute | Key |
/v1/people/…, /v1/contacts/… | 120 a minute | Key |
GET /v1/reachability, GET /v1/capabilities | 120 a minute | Key |
POST /v1/handle-check, GET /v1/reachability?registered=true | 30 a minute | Key |
GET /v1/lines/available | 120 a minute | Key |
GET /v1/whoami | No separate budget | Key |
GET /v1/projects, GET /v1/projects/{projectId}, GET /v1/members, GET /v1/audit-logs | 120 a minute | Person |
Every /v1/webhook-endpoints route | 60 a minute | Person |
POST /v1/personal-tokens/current/revoke | 10 a minute | Person |
POST /v1/cli/logins | 10 a minute | Calling address |
POST /v1/cli/logins/token | 120 a minute | Calling address |
POST /v1/cli/tokens/renew | 60 a minute | Calling address |
POST /v1/cli/tokens/revoke | 10 a minute | Calling address |
| Any request with a wrong key | A budget of its own | Calling address |
Routes on one row share one budget. A row counted per person is spent by every
personal access token
of one person together. The sign-in rows are counted per calling address,
because the caller holds no credential yet. GET /v1/whoami shows
your project's limit in limits.commandsPerMinute. To raise it, write to
support@mapier.ai.
Over a limit
You get 429 rate_limited. Wait the number of
seconds in the Retry-After header, then send the same request.
retry-after: 12
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Try again in a moment.",
"details": {},
"requestId": "0192c4e1-7a2b-7c3d-8e4f-5a6b7c8d9e0f",
"docUrl": "https://docs.mapier.ai/convo/api/errors/rate_limited",
"retryable": true
}
}A send can also get 429 with details.reason: "error_budget" when the
channel refused many recent sends from this line. Wait details.retryAfter
seconds, then send again.