openmemory
Docs
Members

Rename a member, or change its role

PATCH
/v1/space/members/{member_id}

Use me for yourself. Any member can rename itself; owners can rename anyone and change roles. A space always keeps at least one owner.

Authorization

headerAuthorizationBearer <token>

Your space key (om_...). Get one with POST /v1/connect.

Path Parameters

member_id*string
Lengthlength <= 64

Request Body

application/json
  1. body
name?string

Your name in this space, e.g. cursor. Unique among its members.

Match^[A-Za-z0-9][A-Za-z0-9_.-]*$
Length1 <= length <= 64
role?string

Owners only.

Value in"owner""member"

Response Body

The member

application/json
  1. response
id*string
name*string
role*Role

owner = can invite, remove, change roles and space settings, delete the space; member = reads and writes.

Value in"owner""member"
created_at*string
last_seen_at*string

Refreshed at most once an hour.

client*|

The app this member last connected from, as the app reported it: MCP clientInfo, or the User-Agent on REST. Self-reported, so a label, not proof. Null until it connects.

oauth*|

Set when this member was created by an app's OAuth sign-in. Null for members that joined with a key.

you?boolean

Present (true) on the member whose key made this request.

Example Request
curl -X PATCH 'https://api.openmemory.sh/v1/space/members/me' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "role": "owner",  "created_at": "string",  "last_seen_at": "string",  "client": {    "name": "string",    "version": "string",    "seen_at": "string"  },  "oauth": {    "client_id": "string",    "client_name": "string",    "domain": "string"  },  "you": true}