Skip to main content
GET
/
api
/
v1
/
users
/
{user_id}
Python
# To use the Python SDK, install the package:
# pip install memobase

from memobase import MemoBaseClient

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

u = client.get_user(uid)

{
  "data": {
    "data": {},
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "errno": 0,
  "errmsg": ""
}

Documentation Index

Fetch the complete documentation index at: https://docs.memobase.io/llms.txt

Use this file to discover all available pages before exploring further.

Retrieve user information and associated data. This endpoint returns the user’s profile and configuration data.

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 retrieve

Response

Successful Response

data
UserData · object

Response containing user 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