Skip to content
HALOWERK

File Formats and Conversion

ndjson record preserving byte segments

NDJSON upload byte segments: partition UTF-8 lines into contiguous byte-capped chunks without splitting records. Use it when an agent needs to size a streamed file handoff safely.

POST https://format.halowerk.com/v1/ndjson-record-preserving-byte-segments

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
ndjsonstringYes
chunk_bytesintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "ndjson": {
      "type": "string",
      "maxLength": 24000,
      "minLength": 1
    },
    "chunk_bytes": {
      "type": "integer",
      "minimum": 16,
      "maximum": 24000
    }
  },
  "required": [
    "ndjson",
    "chunk_bytes"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "ndjson": "{\"code\":200,\"meaning\":\"OK\"}\n{\"code\":201,\"meaning\":\"Created\"}\n{\"code\":204,\"meaning\":\"No Content\"}\n",
  "chunk_bytes": 52
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’