Skip to main content
Base URL: https://api.streamlogia.com
POST /v1/ingest Authorization: Bearer YOUR_API_KEY

Request body

Send a single entry or an array of entries. Both are accepted.
projectId
string
required
UUID of the project this log belongs to.
level
string
required
One of DEBUG, INFO, WARN, ERROR.
message
string
required
Human-readable description of the event. Max 8 KB.
source
string
required
Component or service that emitted the log — e.g. api.handler, payments-service. Used for filtering.
timestamp
string
ISO 8601 timestamp — e.g. 2026-04-07T09:41:03Z. Defaults to the time of receipt if omitted.
tags
string[]
Arbitrary labels for filtering — e.g. ["prod", "region:us-east"].
meta
object
Arbitrary JSON context, max 64 KB — e.g. { "orderId": 9921, "traceId": "abc" }.

Examples

{
  "projectId": "YOUR_PROJECT_ID",
  "level": "ERROR",
  "message": "Payment failed: card declined",
  "source": "payments.processor",
  "timestamp": "2026-04-07T09:41:03Z",
  "tags": ["prod"],
  "meta": { "orderId": 9921, "userId": "usr_abc" }
}
curl -X POST https://api.streamlogia.com/v1/ingest \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "YOUR_PROJECT_ID",
    "level": "ERROR",
    "message": "Payment failed: card declined",
    "source": "payments.processor",
    "timestamp": "2026-04-07T09:41:03Z",
    "tags": ["prod"],
    "meta": { "userId": "usr_abc", "amount": 4999 }
  }'

Response

{
  "ingested": 2,
  "ids": [
    "log_7f3a1b9c-e4d2-4f8a-b3c1-9d0e2f6a5b78",
    "log_2c8d4e6f-a1b3-5c7d-e9f0-1a2b3c4d5e6f"
  ]
}
ingested
integer
Number of entries stored.
ids
string[]
Stable UUIDs for each entry, in request order.