POST
/
api
/
v1
/
users
# 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')

uid = client.add_user({"ANY": "DATA"})
{
  "data": {
    "id": "<string>"
  },
  "errno": 0,
  "errmsg": ""
}

Create a new user in the memory system with additional user-specific data. This endpoint initializes a new user entity that can store and manage memories.

Authorizations

Authorization
string
header
required

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

Body

application/json

User data for creating a new user

data
object | null

User additional data in JSON

id

User ID in UUIDv4/5

created_at
string | null

Timestamp when the user was created

updated_at
string | null

Timestamp when the user was last updated

Response

200
application/json
Successful Response
data
object | null

Response containing a single ID

errno
enum<integer>

Error code, 0 means success

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

Error message, empty when success