---
title: "Ingest logs via multi-line JSON"
method: POST
path: "/api/{org_id}/{stream_name}/_multi"
tags: ["Logs"]
---

# Ingest logs via multi-line JSON

`POST /api/{org_id}/{stream_name}/_multi`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/{stream_name}/_multi`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/:stream_name/_multi/post.ts> (a function with typed inputs; its response is checked against the schema)

Ingests log data using multi-line JSON format where each line contains a separate JSON object representing a log record. This format is efficient for streaming applications and tools that generate logs in newline-delimited JSON format.

## Path parameters

- `org_id` string, required
- `stream_name` string, required

## Request body

- string

## Response `200`

Success

- IngestionResponse
  - `code` integer, required
  - `error` string, nullable
  - `status` StreamStatus[]
    - `error` string
    - `failed` integer, required
    - `successful` integer, required
    - `name` string, required

## Other responses

- `500`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
