---
title: "Generate Title"
method: POST
path: "/v1/generate-title"
tags: ["chat"]
---

# Generate Title

`POST /v1/generate-title`

## Request

- Base URL: `https://api.opero.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.opero.pro/v1/generate-title`
- Auth: none declared

## Headers

- `X-User-Id` string, nullable

## Request body

- TitleGenerationRequest
  - `messages` Message[], required
    - `role` string, required
    - `content` string, required
    - `metadata` MessageMetadata: Metadata attached to chat messages.
      - `visualization_action` VisualizationAction
        - `artifact_id` string, required
        - `revision` integer, required
        - `selections` object
      - `voicememo` VoiceMemoMetadata: Metadata for voice memo attachments on messages.
        - `s3Key` string, required
        - `voiceMemoId` string, required
        - `transcript` string, nullable
        - `duration` integer, required
        - `mimeType` string, required
        - `fileSize` integer, required
      - `images` ImageMetadata[], nullable
        - `id` string, required
        - `url` string, required
        - `s3_key` string, required
        - `mimetype` string, required
        - `file_name` string, nullable
        - `width` integer, nullable
        - `height` integer, nullable
      - `videos` VideoMetadata[], nullable
        - `id` string, required
        - `url` string, required
        - `s3_key` string, required
        - `mimetype` string, required
        - `duration` number, nullable
        - `thumbnail_s3_key` string, nullable
        - `thumbnail_url` string, nullable
        - `width` integer, nullable
        - `height` integer, nullable
      - `documents` DocumentMetadata[], nullable
        - `id` string, required
        - `file_name` string, required
        - `file_type` string, required
        - `s3_key` string, required
        - `file_size` integer, nullable
  - `conversation_id` string, required
  - `org_id` string, nullable
  - `org_slug` string, nullable
  - `language` 'English' | 'Spanish' | 'French' | 'German' | 'Italian' | 'Portuguese' | 'Dutch' | 'Swedish' | 'Danish', nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/opero/apis/opero-pro-api.md) - [All operations](https://skmtc.dev/opero/apis/opero-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opero/apis/opero-pro-api/revisions/e6ede41aeb9b?raw)
