---
title: "Use AI to automatically parse log text into JSON"
method: POST
path: "/pipeline/ai/auto-parse"
tags: ["Experimental"]
---

# Use AI to automatically parse log text into JSON

`POST /pipeline/ai/auto-parse`

Generates a parsed JSON object for each textual log line provided.

## Request body

- object
  - `samples` string[], required — At least 1 line to pass to the AI model for JSON generation. It accepts a maximum of 25 lines.

## Response `200`

Default Response

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/versions/fb2535545d90/schema)
