---
title: "Derive and store a title from the content"
method: POST
path: "/v1/documents/{uuid}/generate-title"
tags: ["Documents"]
---

# Derive and store a title from the content

`POST /v1/documents/{uuid}/generate-title`

## Request

- Base URL: `https://contentmaschine.ai/api`
- URL: `https://contentmaschine.ai/api/v1/documents/{uuid}/generate-title`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://contentmaschine.ai/api/oauth/authorize`, token URL `https://contentmaschine.ai/api/oauth/token`)

**A LOCAL HEURISTIC, not a model call: no provider, no credits.** It takes the first meaningful line of the content, strips a markdown heading marker and truncates at 60 characters. It requires `text:write` because it PERSISTS the derived title, not because it bills.

## Path parameters

- `uuid` string, uuid, required

## Response `200`

The derived title.

- object
  - `success` boolean
  - `data` object
    - `title` string
  - `timestamp` string, date-time

## Other responses

- `401`: Missing or invalid API key.
- `404`: Unknown document, or not yours.
- `default`: Any other error. Every failure this API emits uses the same envelope; branch on `error.type`, never on `error.message`, and quote `error.correlation_id` to support.

---

[API](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api.md) · [All operations](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api/revisions/28c74f46051c?raw)
