Sazabi
APILog 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

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/log-streams/batch" \  -H "Content-Type: application/json" \  -d '{    "logSourceId": "7efc89d3-d050-4aa1-9ef7-0c937654d327",    "streams": [      {}    ]  }'
{  "accepted": [    {      "streamId": "22cb260b-fac8-4ce4-8488-8f1949304300"    }  ]}