---
title: "Agent Json Format"
method: POST
path: "/v1/json/format"
tags: ["agent"]
---

# Agent Json Format

`POST /v1/json/format`

## Request

- Base URL: `https://api.sumvid.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sumvid.app/v1/json/format`
- Auth: none declared

Validate raw JSON and return it pretty-printed or minified. Pay-per-call
via x402 (no account/key). No jobs-ledger row — there is no video to attach
one to — but a successful call writes an x402_payments row. Invalid JSON
(400, with line and column) and an input over 1 MB (413) are never charged.

## Request body

- JsonFormatRequest
  - `text` string, required
  - `pretty` boolean
  - `sort_keys` boolean

## Response `200`

Successful Response

- JsonFormatResponse
  - `text` string, required
  - `pretty` boolean, required
  - `sort_keys` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sumvid/apis/summarize-vid.md) · [All operations](https://skmtc.dev/sumvid/apis/summarize-vid/llms.txt) · [OpenAPI document](https://skmtc.dev/sumvid/apis/summarize-vid/revisions/c03d66e07deb?raw)
