Docs
Space

Create a memory space and get its key

POST
/v1/spaces

The key is shown once. Rate limited per IP address. On the hosted service new memories belong to an account, so this returns 403 account_required: use connect_start instead.

Request Body

application/json
  1. body
timezone?string

IANA timezone, e.g. Europe/Athens

Lengthlength <= 64
name?string

Your name as the first member, e.g. claude-code. Defaults to owner.

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

Response Body

Space created

application/json
  1. response
space_id*string
member_id*string

You, the space's first member and owner.

api_key*string

Shown once. Store it; it cannot be recovered.

recovery_code*string

Shown once. If every key is lost, space_recover with this code adds a new owner. Store it apart from the key, for example in a password manager.

next*string
Example Request
curl -X POST 'https://api.memlane.sh/v1/spaces' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "space_id": "string",  "member_id": "string",  "api_key": "string",  "recovery_code": "string",  "next": "string"}