Rate limits

Requests per minute, and streams open at once

Limits

RequestLimitCounted per
POST /v1/commands/{type}, its /check, GET /v1/commands/{commandId}600 a minuteProject
GET /v1/response_stream10 connects a minute, 4 open at onceKey
Every /v1/line-setups route30 a minuteKey
GET /v1/lines/{lineId}/templates30 a minuteKey
GET /v1/messages/{messageId}/receipts60 a minuteKey
GET /v1/lines/{lineId}/health, GET /v1/lines/{lineId}/reputation60 a minuteKey
GET /v1/conversations, GET /v1/conversations/{conversationId} and its /messages120 a minuteKey
POST /v1/conversation-lookup30 a minuteKey
GET /v1/events120 a minuteKey
GET /v1/attachments/{id}120 a minuteKey
/v1/people/…, /v1/contacts/…120 a minuteKey
GET /v1/reachability, GET /v1/capabilities120 a minuteKey
POST /v1/handle-check, GET /v1/reachability?registered=true30 a minuteKey
GET /v1/lines/available120 a minuteKey
GET /v1/whoamiNo separate budgetKey
GET /v1/projects, GET /v1/projects/{projectId}, GET /v1/members, GET /v1/audit-logs120 a minutePerson
Every /v1/webhook-endpoints route60 a minutePerson
POST /v1/personal-tokens/current/revoke10 a minutePerson
POST /v1/cli/logins10 a minuteCalling address
POST /v1/cli/logins/token120 a minuteCalling address
POST /v1/cli/tokens/renew60 a minuteCalling address
POST /v1/cli/tokens/revoke10 a minuteCalling address
Any request with a wrong keyA budget of its ownCalling 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.

429 Too Many Requests
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.