---
title: "Regenerate \"Cómo te veo\" (at most once every 12 hours)"
method: POST
path: "/api/v1/me/portrait/refresh"
---

# Regenerate "Cómo te veo" (at most once every 12 hours)

`POST /api/v1/me/portrait/refresh`

## Request

- Base URL: `https://memchats.com`
- URL: `https://memchats.com/api/v1/me/portrait/refresh`
- Auth: HTTP bearer

Recomputes the facts (reply times per relationship family, unanswered threads, patterns on the user's side, traits, sent messages) and asks the model to write the portrait from them. Skips the model when the facts did not change since the last generation (`reason: "unchanged"`) or when there is no data at all (`reason: "insufficient_data"`).

## Response `200`

Portrait after the refresh

- object
  - `portrait` object, nullable
  - `generatedAt` string, date-time, nullable
  - `stale` boolean
  - `regenerated` boolean
  - `reason` 'unchanged' | 'insufficient_data', nullable

## Other responses

- `401`: Unauthorized
- `429`: Already refreshed in the last 12 hours: { error, code: "portrait_rate_limited", retryAt } with Retry-After
- `502`: The model answered twice with an unusable shape: { error, code: "portrait_invalid_output" }
- `503`: LLM provider unavailable

---

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