ZevSight
Open app

API reference

Ingest API reference

Reference for POST /v1/ingest/events and the OTLP/HTTP logs endpoint, generated from the ZevSight OpenAPI file.

Send events, natively or over OTLP/HTTP, with an ingest key.

Send events with an ingest token (zsi_…). Guides: HTTP ingest API, OpenTelemetry, Limits and batching.

Base URL: https://ingest.zevsight.com. Machine-readable: /openapi.yaml.

Send events

POST https://ingest.zevsight.com/v1/ingest/events

Send a batch of events in ZevSight’s native format.

Authentication: Authorization: Bearer <token> with Ingest token (zsi_…).

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringUp to 128 characters. A retry with the same key within 2 hours is accepted again without storing anything twice. Up to 128 characters.
Content-EncodingheaderstringOne of gzip, zstd, identity.

Request body

Content type: application/json or application/x-ndjson.

FieldTypeRequiredDescription
eventsarray of EventInyes1 to 5000 items.
events[].idstring (uuid)UUIDv7. Omit to have one generated.
events[].environmentstringDefault production. Pattern ^[a-z0-9][a-z0-9._-]{0,63}$.
events[].servicestringDefault unknown. Pattern ^[a-z0-9][a-z0-9._-]{0,63}$.
events[].typestringyesOne of log, heartbeat, check_result.
events[].tsstring (date-time)
events[].trace_idstringPattern ^[0-9a-f]{32}$.
events[].span_idstringPattern ^[0-9a-f]{16}$.
events[].severitystringA level name (any common logger spelling) or omitted.
events[].attrsobjectUp to 128 keys. Map of string to string (values up to 8192 characters).
events[].resourceobjectUp to 128 keys. Map of string to string (values up to 8192 characters).
events[].bodyone of LogBody, HeartbeatBody, CheckResultBodyyes
events[].body.messagestringyes(LogBody) Truncated above 64 KiB.
events[].body.fieldsobject(LogBody)
events[].body.monitor_idstringyes(HeartbeatBody)
events[].body.statusstringyes(HeartbeatBody) One of start, ok, fail.
events[].body.duration_msinteger(HeartbeatBody) At least 0.
events[].body.notestring(HeartbeatBody) Up to 8192 characters.
events[].body.check_idstringyes(CheckResultBody)
events[].body.regionstringyes(CheckResultBody)
events[].body.node_idstringyes(CheckResultBody)
events[].body.config_versionintegeryes(CheckResultBody)
events[].body.statusstringyes(CheckResultBody) One of up, down, degraded.
events[].body.latency_msintegeryes(CheckResultBody) At least 0.
events[].body.detailobject(CheckResultBody) Map of string to string.
events[].body.errorstring(CheckResultBody) Short reason when not up; omitted when up.
events[].body.signaturestringyes(CheckResultBody)

application/x-ndjson: One EventIn per line. Same limits.

Responses

StatusDescription
202Durably queued. Searchable within seconds; visible in live tail sooner.
400The request, or every event in it, is invalid.
401Missing, unknown, expired or wrong-kind credential.
413Over 5 MiB decompressed or 5,000 events.
421The credential belongs to another data region. Nothing was stored or forwarded; endpoint names the right host.
429Burst limit (RATE_LIMITED) or monthly quota (QUOTA_EXCEEDED). Headers: Retry-After.
503The queue is unavailable or full. Nothing was stored; retry. Headers: Retry-After.

Response fields (202):

FieldTypeRequiredDescription
acceptedintegeryes
rejectedarray of objectEvents refused individually (the rest were accepted).
rejected[].indexinteger
rejected[].fieldstring
rejected[].messagestring
quotaobjectPresent when the project is at 80% of its monthly ingest or above.
quota.used_rationumber
quota.statestringOne of warning, over, warn_and_above_only.

Example

curl -X POST https://ingest.zevsight.com/v1/ingest/events \
  -H "Authorization: Bearer <INGEST_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"events":[{"service":"api","environment":"production","type":"log","severity":"error","attrs":{"route":"/v1/pay","user.id":"42"},"body":{"message":"payment provider timeout after 3 retries","fields":{"provider":"card","attempt":3}}}]}'

Example response:

{
  "accepted": 1,
  "rejected": []
}

Send OTLP logs

POST https://ingest.zevsight.com/v1/ingest/otlp/logs

OTLP/HTTP log export.

Standard OTLP/HTTP ExportLogsServiceRequest, protobuf or JSON. Point any OpenTelemetry SDK or collector here with the ingest key in the Authorization header. Resource attribute service.name becomes service; deployment.environment.name (or the older deployment.environment) becomes environment; other resource attributes go to resource; record attributes to attrs. Responses follow the OTLP/HTTP spec, including partial_success.

Authentication: Authorization: Bearer <token> with Ingest token (zsi_…).

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringUp to 128 characters. A retry with the same key within 2 hours is accepted again without storing anything twice. Up to 128 characters.

Request body

Content type: application/x-protobuf or application/json.

Responses

StatusDescription
200Accepted (OTLP success, possibly with partial_success).
400The request, or every event in it, is invalid.
401Missing, unknown, expired or wrong-kind credential.
413Over 5 MiB decompressed or 5,000 events.
421The credential belongs to another data region. Nothing was stored or forwarded; endpoint names the right host.
429Burst limit (RATE_LIMITED) or monthly quota (QUOTA_EXCEEDED). Headers: Retry-After.
503The queue is unavailable or full. Nothing was stored; retry. Headers: Retry-After.

Example

curl -X POST https://ingest.zevsight.com/v1/ingest/otlp/logs \
  -H "Authorization: Bearer <INGEST_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"resourceLogs":[{"resource":{"attributes":[
        {"key":"service.name","value":{"stringValue":"api"}},
        {"key":"deployment.environment.name","value":{"stringValue":"production"}}]},
      "scopeLogs":[{"logRecords":[{"severityText":"ERROR",
        "body":{"stringValue":"payment provider timeout"},
        "attributes":[{"key":"route","value":{"stringValue":"/v1/pay"}}]}]}]}]}'

Built 29 November 2026 · View as Markdown