POST https://logs.fivemesh.io/v1/logs. A global Developer key must use the explicit-server route.
Requires bearer authentication with logs:write and an active Logs source.
Request
SendContent-Type: application/json with a stable batch_id and an events array.
Event fields
The REST API uses snake_case event fields. SDK options such as
eventType are translated by the SDK.
Limits and atomicity
- 1 to 500 events per HTTP batch.
- At most 1 MiB of JSON per request.
- At most 16 KiB per event.
batch_iduses the same 8–64 character format asevent_id.
Response and retries
Acceptance returns HTTP 202 withaccepted: true, batch_id, accepted_events, ingested_at and replayed. The X-Request-Id header identifies the request; error bodies also include request_id.
Retry transient failures with the same batch ID and unchanged payload. Reusing a batch ID with a different payload returns batch_id_conflict. Follow Retry-After on throttled or unavailable responses, and use backoff rather than immediate repeated retries.
Keep event IDs stable too, so retry handling and query deduplication can recognize the same event. Acceptance and search visibility are separate; do not create a new batch merely because an event is not yet visible.