openmemory
Docs
Connect

Poll for the agent's key

POST
/v1/connect/token

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.

Request Body

application/json
  1. body
device_code*string
Length1 <= length <= 200

Response Body

Connected

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

You, a member of your own in the memory the person picked.

name*string
role*string
Value in"owner""member"
api_key*string

Shown once. Store it where the person approves; never print it in chat.

next*string
Example Request
curl -X POST 'https://api.openmemory.sh/v1/connect/token' \  -H 'Content-Type: application/json' \  -d '{  "device_code": "string"}'
Example Response
{  "space_id": "string",  "member_id": "string",  "name": "string",  "role": "owner",  "api_key": "string",  "next": "string"}