GET
/
api
/
v1
/
project
/
users
Python
# To use the Python SDK, install the package:
# pip install memobase

from memobase import MemoBaseClient

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

users = memobase.get_all_users(search="", order_by="updated_at", order_desc=True, limit=10, offset=0)
{
  "data": {
    "users": [
      "<any>"
    ],
    "count": 0
  },
  "errno": 0,
  "errmsg": ""
}
Get the users of a project with various filtering and ordering options. This endpoint allows you to:
  • Search users by username
  • Order results by different fields (updated_at, profile_count, event_count)
  • Control sort direction (ascending or descending)
  • Paginate results with limit and offset
The response includes user data along with their profile count and event count for better project insights.

Authorizations

Authorization
string
header
required

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

Query Parameters

Search string in username field

order_by
enum<string>
default:updated_at

Order by field

Available options:
updated_at,
profile_count,
event_count
order_desc
boolean
default:true

Order descending or ascending

limit
integer
default:10

Limit the number of results returned

offset
integer
default:0

Offset the starting point for pagination

Response

Successful Response

data
object | null

Response containing the users

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