Space
Get back into a space with its recovery code
POST
No key needed: this is for when every key is lost. Adds a new owner with its own key, and replaces the recovery code (both shown once). Other members' keys keep working. Rate limited per IP address.
application/json- body
code*stringThe space's recovery code (omr_...).
Length
8 <= length <= 100name?stringYour name as the new owner. Defaults to owner (or owner-2, ...).
Match
^[A-Za-z0-9][A-Za-z0-9_.-]*$Length
1 <= length <= 64Recovered
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 new key. Shown once.
recovery_code*stringThe space's new recovery code. Shown once; the one you used no longer works.
next*stringcurl -X POST 'https://api.openmemory.sh/v1/space/recover' \ -H 'Content-Type: application/json' \ -d '{ "code": "stringst"}'Example Response
{ "space_id": "string", "member_id": "string", "name": "string", "role": "owner", "api_key": "string", "recovery_code": "string", "next": "string"}