Mendloop Docs Request access

Pagination and limits

Cursor pagination, rate limits, body size, duplicate events and retention.

Lists use cursor pagination. Ingest has a per-project rate limit and body size limits; the sign-in endpoints have their own rate limits.

Pagination#

Paginated lists return:

JSON
{
  "items": [],
  "next_cursor": "AZO34gpMfxm40lHD6af2BA"
}
Query parameter Type Default Description
limit integer 50 Items per page, 1 to 200
cursor string The next_cursor from the previous page, unchanged

next_cursor is null on the last page. Cursors are opaque: don't build or edit them. A changed or broken cursor is 422 invalid_input with fields.cursor. For issues, keep the same sort and filters while paging.

Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/issues?limit=100&cursor=AZO34gpMfxm40lHD6af2BA" \
  -H "Authorization: Bearer sk_test_…"

Some lists are short and come back whole, still as {items, next_cursor: null}: saved views, teams, connections, verify runs, the integration catalog, releases, an issue's tickets and invites created together. A few endpoints return a plain JSON array instead: workflows, workflow versions, templates, actions, fix runs and pull requests. Each endpoint's page says which.

Ingest rate limit#

Each project has a per-second event limit. The default is 300 events per second per project; self-hosters change it with MENDLOOP_INGEST_RATE_LIMIT. Over the limit, ingest answers:

HTTP
HTTP/1.1 429 Too Many Requests
Retry-After: 1
X-Sentry-Rate-Limits: 1::project:rate_limited

with error.code rate_limited. Sentry-compatible SDKs, including the Mendloop SDK, pause and retry on their own. If the event queue itself can't take events, ingest answers 503 ingest_unavailable with Retry-After: 5.

Sign-in rate limits#

The sign-in and sign-up endpoints are limited per IP address (default 20 a minute, half that for magic links; self-hosters set MENDLOOP_AUTH_RATE_LIMIT). Over the limit: 429 rate_limited with Retry-After in seconds. The REST endpoints documented here have no rate limit of their own.

Body size#

Limit Default Self-host setting
Ingest request body, as sent 1 MB MENDLOOP_INGEST_MAX_BODY
Ingest body after decompression 20 MB MENDLOOP_INGEST_MAX_DECOMPRESSED
One source map or release file 50 MB
Workflow YAML 200,000 characters

Over an ingest limit: 413 payload_too_large. Ingest accepts Content-Encoding gzip, deflate and br. Send one event per /v1/events or /store/ request.

Duplicate events#

An event whose event_id was already received for the same project within the last hour is acknowledged (200 with its id) but processed once, so retries are safe. Events without a valid 32-hex event_id get a new one.

Event times#

An event's timestamp is kept when it is at most 30 days old and at most 5 minutes in the future; otherwise the time it was received is used.

Retention#

Raw events are kept for 30 days by default (MENDLOOP_EVENTS_RETENTION_DAYS on self-host).