---
title: "On-demand (re)synthesis of a subject's profile (T412)"
method: POST
path: "/api/subjects/{subjectId}/profile/refresh"
tags: ["Subjects"]
---

# On-demand (re)synthesis of a subject's profile (T412)

`POST /api/subjects/{subjectId}/profile/refresh`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/subjects/{subjectId}/profile/refresh`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

Bypasses the scheduler's staleness gate (always forces synthesis). Costs an LLM call, same bar as POST /api/memory.

## Path parameters

- `subjectId` string, required

## Response `200`

The newly-synthesized profile.

- object

## Other responses

- `400`: subjectId is required.
- `401`: Missing or invalid credentials.
- `404`: No eligible memory found for this subject — nothing to synthesize.

---

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