Space
Replace this space's key
POST
Returns a new key, shown once. The old key stops working immediately, for everyone using it. Everything in the space stays, including a stored OpenAI key.
header
AuthorizationBearer <token>Your space key (om_...). Create one with POST /v1/spaces.
The new key
application/json- response
space_id*stringapi_key*stringShown once. Store it; it cannot be recovered.
curl -X POST 'https://api.openmemory.sh/v1/space/key'Example Response
{ "space_id": "string", "api_key": "string"}