---
title: "Generate Persona"
method: POST
path: "/api/agents/generate-persona"
tags: ["agents"]
---

# Generate Persona

`POST /api/agents/generate-persona`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/agents/generate-persona`
- Auth: HTTP bearer

## Request body

- PersonaGenerateRequest
  - `mode` string, required
  - `prompt` string, nullable
  - `target_handle` string, nullable
  - `gender` string, nullable
  - `name` string, nullable
  - `about` string, nullable
  - `niche` string, nullable
  - `occupation` string, nullable
  - `tone` string, nullable
  - `role_template` string, nullable
  - `document_keys` string[], nullable
  - `doc_description` string, nullable

## Response `200`

Successful Response

- PersonaResponse
  - `character_json` object, required
  - `style_analysis` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
