Meridian Telemetry v2.4 · stable

Ingest endpoint

POST /v1/events — append a batch of events to a project stream.

Request

HeaderRequiredNotes
AuthorizationyesBearer <token>
Content-Typeyesapplication/x-ndjson or application/json for a single event
Idempotency-KeynoUUIDv4; deduplicates retries for 24 h
Content-Encodingnogzip supported; decompressed size is what counts toward the 5 MB limit

Event schema

FieldTypeDescription
tsRFC 3339 stringEvent time, millisecond precision. Defaults to receive time when omitted.
servicestringEmitting service, 1–64 characters, [a-z0-9._-].
eventstringEvent name, dot-delimited, e.g. order.paid.
propsobjectFlat key/value payload, ≤ 8 KB serialized.
trace_idstringOptional 32-hex trace identifier for correlation.

Responses

StatusCodeMeaning
202—Batch accepted, possibly with per-event rejections.
400malformed_batchBody is not valid NDJSON.
401invalid_tokenToken missing, revoked, or expired.
403region_mismatchToken is not valid for this regional endpoint.
413batch_too_largeOver 5 MB or 10,000 events.
429quota_exceededPlan ceiling reached; retry after Retry-After.

Partial success

A 202 does not guarantee every event was stored. Inspect rejected and the errors array:

{
  "batch_id": "bt_01JGY4K2Q7",
  "accepted": 9998,
  "rejected": 2,
  "errors": [
    {"index": 41, "code": "schema_mismatch", "field": "props.cart_value", "detail": "expected number, got string"},
    {"index": 773, "code": "timestamp_out_of_range", "detail": "ts is more than 30 days in the future"}
  ]
}
The index is zero-based within the submitted batch. Re-submit only the failed events; accepted events are never rewritten.

Compression

gzip typically reduces telemetry payloads by 8–12×. Enable it above roughly 16 KB per batch; below that the CPU cost usually outweighs the savings on the ingest side.