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

from memobase import MemoBaseClient
from memobase.core.blob import BlobType

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

user = client.get_user('user_id')
blobs = user.buffer(BlobType.chat)
{
  "data": {
    "ids": [
      "<string>"
    ]
  },
  "errno": 0,
  "errmsg": ""
}
Get the ids of the buffer for a specific user and buffer type. This endpoint returns buffer ids.

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

buffer_type
enum<string>
required

The type of buffer to flush

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

Query Parameters

status
enum<string>
default:processing

The status of the buffer to get

Available options:
idle,
processing,
failed,
done

Response

Successful Response

data
object | null

Response containing multiple IDs

errno
enum<integer>

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