Mendloop Docs Request access

Ingest

Send errors and events: Sentry envelopes, the legacy store endpoint, and the generic JSON events endpoint.

Ingest receives events and answers as soon as an event is queued; grouping into issues happens right after. Before anything is stored, free text is scrubbed (emails, IPs, card numbers, tokens and similar) and user identifiers are hashed with a key unique to your organization. Cookies and Authorization headers inside events are dropped.

Ingest routes are not under /api/v1. Their host is the one in your DSN: https://ingest.getmendloop.com on the cloud, MENDLOOP_INGEST_URL on a self-hosted install. They answer CORS for any origin (no credentials), so browser SDKs can post from your site.

Tip:

Already using a Sentry SDK? Point it at your Mendloop DSN, https://pk_live_…@ingest.getmendloop.com/42. Nothing else changes.

Send an envelope#

POST/api/{ingest_id}/envelope/

Accepts a Sentry envelope: a JSON header line, then items, each a JSON header line and a payload. This is what the Mendloop SDK and every current Sentry SDK send. event and error items become events; attachment items are scrubbed (text files), encrypted and stored with the event when the envelope header has an event_id. Other item types (session, sessions, client_report, transaction, profile, span, check_in, log, replay_* and similar) are accepted and dropped. The path also works without the trailing slash.

Auth: a publishable (pk_) or secret (sk_) key with the events:write scope.

Note:

The key can come from X-Sentry-Auth, Authorization: Sentry sentry_key=…, ?sentry_key=, or the dsn field of the envelope header. It must belong to the project behind ingest_id, in the same mode.

Path parameters

Parameter Type Required Description
ingest_id integer required The project number at the end of the DSN

Query parameters

Parameter Type Required Description
sentry_key string optional The key, for clients that can't send headers

Response

Field Type Description
id string The event id (32 hex). Missing ({}) when the envelope held no event.

Errors

Status Code When
400 invalid_payload The body isn't valid JSON or a valid envelope, can't be decompressed, or has neither an exception nor a message
401 missing_key No key was sent
401 invalid_key The key is unknown or revoked
403 missing_scope The key doesn't have events:write
403 key_project_mismatch The key belongs to another project, org or mode
403 org_inactive The organization is suspended or deleted
413 payload_too_large The body is over 1 MB, or over 20 MB decompressed
429 rate_limited Over the project's events-per-second limit. Retry-After: 1
503 ingest_unavailable The event queue can't take events. Retry-After: 5
Shell
printf '%s\n' \
  '{"event_id":"8d2f6c1e4b7a49e0a3c5d7f9b1e2a4c6","dsn":"https://pk_test_…@ingest.getmendloop.com/42"}' \
  '{"type":"event"}' \
  '{"message":"Payment webhook timed out","level":"error","platform":"node","environment":"production","release":"api@2.4.0"}' \
| curl -X POST "https://ingest.getmendloop.com/api/42/envelope/" \
  -H "Content-Type: application/x-sentry-envelope" \
  --data-binary @-
Response 200JSON
{
  "id": "8d2f6c1e4b7a49e0a3c5d7f9b1e2a4c6"
}

Send a store event#

POST/api/{ingest_id}/store/

The legacy Sentry endpoint: one JSON event per request, for older Sentry SDKs. The body is a Sentry event object. The path also works without the trailing slash.

Auth: a publishable (pk_) or secret (sk_) key with the events:write scope.

Path parameters

Parameter Type Required Description
ingest_id integer required The project number at the end of the DSN

Query parameters

Parameter Type Required Description
sentry_key string optional The key, for clients that can't send headers

Response

Field Type Description
id string The event id (32 hex)

Errors

Status Code When
400 invalid_payload The body isn't valid JSON or a valid envelope, can't be decompressed, or has neither an exception nor a message
401 missing_key No key was sent
401 invalid_key The key is unknown or revoked
403 missing_scope The key doesn't have events:write
403 key_project_mismatch The key belongs to another project, org or mode
403 org_inactive The organization is suspended or deleted
413 payload_too_large The body is over 1 MB, or over 20 MB decompressed
429 rate_limited Over the project's events-per-second limit. Retry-After: 1
503 ingest_unavailable The event queue can't take events. Retry-After: 5
Shell
curl -X POST "https://ingest.getmendloop.com/api/42/store/" \
  -H "X-Sentry-Auth: Sentry sentry_key=pk_test_…, sentry_version=7" \
  -H "Content-Type: application/json" \
  -d '{"message": "Payment webhook timed out", "level": "error", "platform": "python"}'
Response 200JSON
{
  "id": "3b9e0d1c7a2f4e58b6c4d2a0f8e6b4c2"
}

Send an event#

POST/v1/events

Sends one event as plain JSON, from any language. Use it from servers, scripts, CI and anything without a Sentry SDK. The body is the event below; only message or exception is required. A key bound to a project sends to that project; an org-wide key must name the project with ?project=.

Auth: a publishable (pk_) or secret (sk_) key with the events:write scope.

Query parameters

Parameter Type Required Description
project integer optional The project number (ingest_id) from the DSN

Body (JSON)

Parameter Type Required Description
message string or object optional The message. An object {formatted} or {message} also works. Up to 8,192 characters.
exception object[] optional Exceptions, innermost last: {type, value, module, stacktrace: {frames: [...]}} or {type, value, frames}. At most 10.
event_id string optional 32 hex characters (dashes are removed). Generated when missing or invalid. Used to drop duplicates.
timestamp string or number optional ISO 8601 or Unix seconds. Default: when it was received.
level string optional fatal, error, warning, info or debug (warn, critical, err, log, trace are mapped). Default error with an exception, else info.
kind string optional exception, crash, anr, log, http, user_report or ci_failure. Inferred when missing.
platform string optional e.g. javascript, node, python, android, ios. Default other.
environment string optional e.g. production. Up to 64 characters.
release string optional e.g. api@2.4.0. Must match the release you upload source maps for.
source string optional Where the event came from, up to 32 characters of a-z 0-9 . -. Default api. sentry is reserved.
user object optional {id, email, username, ip_address}. Hashed with your org's key at ingest; the raw values are never stored.
tags object optional String keys (up to 64 characters) to values. At most 100.
breadcrumbs object[] optional {timestamp, category, type, level, message, data}. The last 100 are kept.
request object optional {method, url, query_string, headers, data}. Only safe headers are kept (user agent, referer, content type, accept, accept language, origin).
contexts object optional Sentry-style contexts: device, os, browser, runtime, app, trace, flags.
extra object optional Free-form data, scrubbed. At most 100 keys.
fingerprint string[] optional Custom grouping fingerprint. At most 10 parts.
logger string optional Logger name
transaction string optional Route or transaction name

Response

Field Type Description
id string The event id (32 hex)

Errors

Status Code When
400 project_required The key isn't bound to a project and ?project= is missing
400 invalid_payload The body isn't valid JSON or a valid envelope, can't be decompressed, or has neither an exception nor a message
401 missing_key No key was sent
401 invalid_key The key is unknown or revoked
403 missing_scope The key doesn't have events:write
403 key_project_mismatch The key belongs to another project, org or mode
403 org_inactive The organization is suspended or deleted
413 payload_too_large The body is over 1 MB, or over 20 MB decompressed
429 rate_limited Over the project's events-per-second limit. Retry-After: 1
503 ingest_unavailable The event queue can't take events. Retry-After: 5
Shell
curl -X POST "https://ingest.getmendloop.com/v1/events?project=42" \
  -H "X-Mendloop-Key: pk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Payment webhook timed out",
    "level": "error",
    "environment": "production",
    "release": "api@2.4.0",
    "tags": {
      "provider": "stripe"
    }
  }'
Response 200JSON
{
  "id": "f41c2b7e9d0a4c6e8b1d3f5a7c9e0b2d"
}

What happens to an event#

  1. The key is checked and the project's rate limit counted.
  2. The event is normalized into one shape (the one Events returns).
  3. Free text is scrubbed and identifiers (user.id, user.email, user.username, user.ip_address, device and session ids) are replaced by per-org hashes.
  4. It is queued; ingest answers 200 {"id": …}.
  5. The worker groups it into an issue, applies source maps and updates counts, and the issue appears in the live stream.