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

# Ingest logs via JSON array

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

## 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}/_json`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/:stream_name/_json/post.ts> (a function with typed inputs; its response is checked against the schema)

Ingests log data using a JSON array format where multiple log records are submitted as an array in a single request. This is ideal for batch processing scenarios where applications collect multiple log entries before sending them together for improved efficiency.

## 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)
