---
title: "Set Identity"
method: POST
path: "/v1/identity"
tags: ["Memory"]
---

# Set Identity

`POST /v1/identity`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/identity`
- Auth: none declared. Required headers: `authorization`

Pin which entity is YOU. Extraction, 'User' merging and profile generation
anchor to the pinned entity instead of guessing by name/fact-count heuristics.
Fixes identity drift when third parties are frequently co-mentioned (issue #54).

## Query parameters

- `entity` string, required
- `sub_user_id` string

## Headers

- `authorization` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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