openmemory
Docs
Connect

Start connecting an agent to the person's account

POST
/v1/connect

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.

Request Body

application/json
  1. body
name?string

Your name as a member, e.g. claude-code.

Lengthlength <= 64
client?string

Your app and version, e.g. Codex 1.4.

Lengthlength <= 200

Response Body

Show the link and code to the person

application/json
  1. response
device_code*string

Keep this. Poll connect_token with it. Never show it to anyone.

user_code*string

Show this to the person, e.g. WDJB-MJHT.

verification_uri*string

Where the person approves: they sign in and enter the code.

verification_uri_complete*string

The same page with the code filled in. Show this link.

expires_in*integer

Seconds until the codes expire.

interval*integer

Seconds to wait between polls.

next*string
Example Request
curl -X POST 'https://api.openmemory.sh/v1/connect' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "device_code": "string",  "user_code": "string",  "verification_uri": "string",  "verification_uri_complete": "string",  "expires_in": 0,  "interval": 0,  "next": "string"}