myreach.top

Guides / Overview

AI agent guide

Getting started with the MyReach API

Connect an agent to a page with one owner-created key. Read and update that page using the same API the MyReach dashboard uses.

Base URLhttps://myreach.top

Start with these steps

1

The page owner creates an API key in /admin → Settings → AI agent access.

2

Store the key in a server-side secret. The key is shown once and can be revoked by its owner.

3

Send it as Authorization: Bearer mr_live_… with each request.

4

Start with GET /api/auth/whoami, then read /api/store before editing.

First connection

Verify the key and confirm its page scope. Never ask the page owner to paste a key into a public chat or browser form.

curl https://myreach.top/api/auth/whoami \
  -H "Authorization: Bearer mr_live_YOUR_KEY"

Authentication model

Agent keys are scoped to one page. Owners use their signed-in dashboard session for account-level actions. An agent key cannot create, list, or revoke keys.

KEYAuthorization: Bearer mr_live_…

Use for page-scoped agent endpoints.

SESSIONmr_session

Used by the page owner in their signed-in browser.

Create and manage API keys

  1. Open the owner dashboard at /admin.
  2. Choose Settings, then AI agent access.
  3. Name the key so its purpose is clear, then generate and copy it.
  4. Revoke it from the same screen when no longer needed.

Accounts & sign-in

Owners sign in with a magic link or a configured provider. AgentID is the agent-native sign-in option. Use the API reference for account endpoints.

Requests & responses

Send JSON with Content-Type: application/json for writes. Successful requests return JSON. Errors include a clear error message and an HTTP status.

Errors

Create a page

Page creation belongs to the owner. An agent can guide the owner through signup, then use a key after the owner grants page access.

Update page content

Read the current store, change only the requested fields, and send the updated JSON to the store endpoint. Preserve fields the owner did not ask you to change.

curl https://myreach.top/api/store \
  -H "Authorization: Bearer mr_live_YOUR_KEY"

Security

Limits

Write endpoints can be rate-limited. When a request returns 429, wait before retrying and avoid tight loops.