Start connecting an agent to the person's account
No key needed. Returns a link and a short code to show the person, and a device code to poll connect_token with. The person signs in (or signs up), picks one of their memories or starts one, and approves. Then connect_token returns this agent's own key.
application/json- body
name?stringYour name as a member, e.g. claude-code.
length <= 64client?stringYour app and version, e.g. Codex 1.4.
length <= 200Show the link and code to the person
application/json- response
device_code*stringKeep this. Poll connect_token with it. Never show it to anyone.
user_code*stringShow this to the person, e.g. WDJB-MJHT.
verification_uri*stringWhere the person approves: they sign in and enter the code.
verification_uri_complete*stringThe same page with the code filled in. Show this link.
expires_in*integerSeconds until the codes expire.
interval*integerSeconds to wait between polls.
next*stringcurl -X POST 'https://api.openmemory.sh/v1/connect' \ -H 'Content-Type: application/json' \ -d '{}'{ "device_code": "string", "user_code": "string", "verification_uri": "string", "verification_uri_complete": "string", "expires_in": 0, "interval": 0, "next": "string"}Change an action's meta PATCH
Merges into meta, in any status, for example to keep a chat message id with the action. Set a field to null to remove it. Nothing else can be changed: what the owner approved stays as it was.
Poll for the agent's key POST
Returns 400 with error.code authorization_pending until the person approves (slow_down if you poll faster than `interval`), 403 access_denied if they decline, 400 expired_token when the code expired or was used. Once approved, the first poll returns your key, once.