Mendloop Docs Request access

Send events with the ingest API

Send an error from any language, script or server with one HTTPS request.

No SDK for your language? Send events straight to ingest with a publishable key. Servers, scripts and mobile apps all work the same way.

The API has two parts: ingest, which receives events with a publishable key, and the REST API under /api/v1 on https://app.getmendloop.com, which needs a secret key or, for some endpoints, a signed-in session. This page covers ingest. Everything is JSON over HTTPS, and errors return a code, a message and a hint that says how to fix it. The REST API is in the API reference.

Send one event#

POST/v1/events
TerminalShell
curl https://ingest.getmendloop.com/v1/events?project=42 \
  -H "X-Mendloop-Key: pk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"message": "Payment webhook timed out", "level": "error",
       "environment": "production", "release": "api@2.4.0"}'

The answer is the event's id: {"id": "…"}. Send the key in X-Mendloop-Key or as Authorization: Bearer. Send one event per request.

Ingest endpoints#

Endpoint For
POST /api/{ingest_id}/envelope/ Sentry envelopes: the Mendloop SDK and any Sentry SDK
POST /api/{ingest_id}/store/ Older Sentry SDKs (one JSON event)
POST /v1/events One JSON event, key in X-Mendloop-Key or Authorization: Bearer
POST /hooks/{tool}/{connection_id} Webhooks from connected tools, signed by each tool

Retries and duplicates#

  • Over a project's per-second limit, ingest answers 429 with Retry-After. Wait that long, then retry.
  • Events with an event_id already seen in the same project within the last hour are dropped, so retrying the same event promptly is safe.
  • Large or over-compressed bodies are refused.

See Limits.

What happens to the data#

Ingest scrubs emails, phone numbers, cards, tokens, JWTs, keys and IPs from free text, and stores user identifiers as keyed hashes, before anything is written. See Security and privacy.

Note:

On a self-hosted install, use your own domain: ingest answers on the same address as the app (for example https://app.example.com/v1/events), and the DSN in Settings → Projects already points there.