latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

memory management

Create Memory

Create a new memory entry for the caller (or, for admins, any scope).

post/v1/memory

Request body

keystring required

Memory key (acts as the namespace in the URL).

valuestring required

Memory content. Typically markdown/text for LLM context.

{"stackTrail":"components:schemas:MemoryCreateRequest:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","description":"Optional JSON metadata (tags, structured fields).","nullable":true}
user_idstring nullable

Scope to this user. Defaults to the caller's user_id.

team_idstring nullable

Scope to this team. Defaults to the caller's team_id.

Response

Successful Response

memory_idstring required
keystring required
valuestring required
{"stackTrail":"components:schemas:LiteLLM_MemoryRow:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","nullable":true}
user_idstring nullable
team_idstring nullable
created_atstring date-time nullable
created_bystring nullable
updated_atstring date-time nullable
updated_bystring nullable