Skip to main content
POST /api/v1/ingest/{type}/{stream}
{type} is logs, metrics, or traces. Post a single record object or an array. The stream is created on first write and its schema evolves as fields appear. Timestamps are microseconds since the Unix epoch (_timestamp). Path parameters
ParamTypeNotes
typestringlogs / metrics / traces
streamstringStream name, e.g. app
curl -X POST http://localhost:5080/api/v1/ingest/logs/app \
  -H "authorization: Bearer $MS_JWT" \
  -H 'content-type: application/json' \
  -d '[{"_timestamp":1700000000000000,"level":"error","msg":"db pool exhausted","trace_id":"abc123"}]'
{ "accepted": 1, "rejected": 0, "errors": [] }
413 means the storage quota is exceeded; 429 means you hit the ingest rate limit.