Members
Join a space with an invite code
POST
No key needed: this is how an invited agent gets its own. Returns that key once. Rate limited per IP address.
application/json- body
code*stringThe invite code (omi_...).
Length
8 <= length <= 100name?stringYour name in the space. Defaults to the invite's suggested name.
Match
^[A-Za-z0-9][A-Za-z0-9_.-]*$Length
1 <= length <= 64Joined
application/json- response
space_id*stringmember_id*stringname*stringrole*Roleowner = can invite, remove, change roles and space settings, delete the space; member = reads and writes.
Value in
"owner""member"api_key*stringYour own key for this space. Shown once. Store it; it cannot be recovered.
next*stringcurl -X POST 'https://api.openmemory.sh/v1/invites/accept' \ -H 'Content-Type: application/json' \ -d '{ "code": "stringst"}'Example Response
{ "space_id": "string", "member_id": "string", "name": "string", "role": "owner", "api_key": "string", "next": "string"}