POST
/
api
/
v1
/
users
/
buffer
/
{user_id}
/
{buffer_type}
# To use the Python SDK, install the package:
# pip install memobase

from memobase import Memobase

client = Memobase(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')

u.flush()
{
  "data": [
    {
      "event_id": "<string>",
      "add_profiles": [
        "<string>"
      ],
      "update_profiles": [
        "<string>"
      ],
      "delete_profiles": [
        "<string>"
      ]
    }
  ],
  "errno": 0,
  "errmsg": ""
}

Flush the memory buffer for a specific user and buffer type. This endpoint ensures all pending memory operations are processed and committed to long-term storage.

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

The ID of the user

buffer_type
enum<string>
required

The type of buffer to flush

Available options:
chat,
doc,
image,
code,
transcript

Response

200
application/json

Successful Response

The response is of type object.