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

Changes

Changed in 1 of the 42 revisions of this API.2

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog