---
title: "Format Text"
method: POST
path: "/v1/format"
tags: ["format"]
---

# Format Text

`POST /v1/format`

## Request

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

Reshape ``text`` per ``target``. Authed (get_ctx) but stateless — no DB, no graph
write. Failures are returned as ``ok=False`` (never a 500) so the UI degrades quietly.

## Headers

- `X-Canvas` string, nullable
- `X-API-Key` string, nullable
- `Authorization` string, nullable

## Request body

- FormatIn
  - `text` string, required
  - `target` string

## Response `200`

Successful Response

- FormatOut
  - `ok` boolean, required
  - `text` string
  - `detail` string, nullable
  - `bounds_hit` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/januraine/apis/june-ai.md) · [All operations](https://skmtc.dev/januraine/apis/june-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/januraine/apis/june-ai/revisions/097b95b163c7?raw)
