Skip to main content
POST
Python
Insert new memory data (blob) for a specific user. This endpoint handles the storage of memory data and automatically updates the user’s memory buffer. The inserted data will be processed and integrated into the user’s long-term memory profile. Memobase plans to support the following blob types:
  • ChatBlob: ✅ supported.
  • SummaryBlob: ✅ supported.
  • DocBlob: 🚧 in progress
  • ImageBlob: 🚧 in progress
  • CodeBlob: 🚧 in progress
  • TranscriptBlob: 🚧 in progress

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
required

The ID of the user to insert the blob for

Query Parameters

wait_process
boolean
default:false

Whether to wait for the blob to be processed

Body

application/json

The blob data to insert

blob_type
enum<string>
required
Available options:
chat,
summary,
doc,
image,
code,
transcript
blob_data
Blob Data · object
required
fields
Fields · object | null
created_at
string<date-time> | null
updated_at
string<date-time> | null

Response

Successful Response

data
BlobInsertData · object | null

Response containing blob insert data

errno
enum<integer>
default:0

Error code, 0 means success

Available options:
0,
400,
401,
403,
404,
405,
409,
422,
500,
501,
502,
503,
504,
520
errmsg
string
default:""

Error message, empty when success