---
title: "Batch-create log streams"
method: POST
path: "/log-streams/batch"
tags: ["Log Streams"]
---

# Batch-create log streams

`POST /log-streams/batch`

Create multiple log streams under a managed log source in one call. Every accepted stream gets a durable row immediately; provisioning happens asynchronously — poll each log stream to track it. API-created streams are always nameless, so there is no per-item rejection: every request item is either accepted (a row was created) or the whole call fails with a request-level error.

## Request body

- object
  - `logSourceId` string, uuid, required — Log source ID to create the log streams under.
  - `streams` object[], required — The log streams to create, in one call.
    - `config` object — Platform-specific log stream configuration.
  - `setAutoProvisionFilter` object, nullable — Atomically set (or clear, with null) the log source's ongoing auto-provisioning filter in the SAME transaction as this batch insert — the select-all-forever pattern. Omit to leave the log source's existing filter untouched. A future new item this batch's filter matches gets auto-provisioned on the log source's own scan cadence (ENG-6870); never reachable independently of this batch create except via `logSources.update`'s own standalone `streamAutoProvisionFilter` field.
    - `allowlist` string[], required — Glob patterns an item must match to be provisioned. Empty means no include restriction.
    - `denylist` string[], required — Glob patterns that exclude an item even when the allowlist admits it. Empty excludes nothing.

## Response `201`

OK

- object
  - `accepted` object[], required — Streams that got a durable row, in the request's order.
    - `streamId` string, uuid, required

## Changes

- **2026-09-05** `1d12b71c735a` — 1 info
  - added the new optional request property `setAutoProvisionFilter`
- **2026-09-04** `f7ae8f775456` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/log-streams/batch/post.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) · [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sazabi/sazabi-public-api/revisions/1d12b71c735a/schema)
