v1

latestOpenAPI 3.1.02026-07-26327152.4 KB
Memory

Save records

Creates or updates a user's memory records, identified by userReferenceId and botId. Accepts a maximum of 20 records per request.

post/v2/memory/users/set

Headers

x-hash-ttlinteger

TTL in seconds for the user's full memory hash. Optional.

Request body

userReferenceIdstring required

External reference identifier of the user.

botIdstring required

Identifier of the bot associated with the memory.

valuesobject required

Map of key to record structure. The key is the variable name. Maximum 20 keys per request.

Response

Records saved successfully.