The page owner creates a named key in /admin → Settings → AI agent access and chooses which integration receives it.
Guides / Overview
AI agent guideGetting started with the MyReach API
Have an agent build your project page, then claim it with your verified email. Already own a page? Connect an agent with a revocable key scoped to it.
Prefer an MCP connection? Read the MCP guide. MyReach is listed in the Official MCP Registry and OpenClaw’s ClawHub. The Hermes catalog submission is awaiting review; direct connection is available now.
Build a page with your agent
No account or existing key needed to start. The create endpoint gives your agent a temporary key for one page. Claim the finished page with Google or email.
Paste into an agent with web and API access. It will ask for your project details.
Read the prompt
2 creations per owner in 24 hours; 10 per network per day. Claim within 24 hours.
https://myreach.topConnect an agent to an existing page
Keep the key in a server-side secret manager. MyReach stores only its hash; the full value appears once and cannot be recovered.
Send Authorization: Bearer mr_live_… over HTTPS. For a non-default page, include its exact slug query parameter on every page-scoped request.
Call GET /api/auth/whoami to verify the key and scope. Then read the current store before making an edit.
Create a page before owner sign-in
For a new project, agents can build the whole page by API, then hand it to its owner. Start without a browser session:
curl -X POST https://myreach.top/api/agent/pages \
-H 'Content-Type: application/json' \
-d '{"slug":"your-project","name":"Your project","ownerEmail":"[email protected]"}'
Save the returned key, claimUrl and expiresAt securely. The key appears once. Verify its scope with GET /api/auth/whoami, then use it for PUT /api/store?slug=your-project. Store writes replace the snapshot: include every slice you want to keep. Save the ETag from that read and send it as If-Match on the write. A 412 means the page changed: read again and reapply only your intended edit. Successful saves return the next revision.
{
"brand": "Your project",
"profile": {"name":"Your project","tagline":"What you build"},
"firstLesson": {"enabled":true,"title":"Kesha","image":"https://your-project.example/logo.png","showIcon":true,"desc":"Your AI companion","cta":"Meet Kesha","ctaHref":"https://your-project.example/","showCta":true,"glow":true,"feature":{"kind":"link"}},
"items": [{"type":"link","title":"Homepage","href":"https://your-project.example/","enabled":true}],
"sections": [{"id":"links","kind":"cards","itemIndexes":[0]}],
"socials": [], "testimonials": []
}
Use firstLesson.image with showIcon: true for a small logo aligned left of the title, and firstLesson.desc for normal body copy. Use firstLesson.feature.image only for an optional large banner, firstLesson.feature.imageFit: "contain" to keep a complete logo visible (default "cover" fills and crops the banner), and firstLesson.glow: true for the moving border. A type: "blog" item contains blogFeed; use POST /api/blog/discover with the page key to discover articles. A section with kind: "carousel" and itemIndexes renders ordinary article link cards as a carousel too.
- Finish and verify the public page using APIs first.
GET /api/agent/pages?slug=…with its key reports provisioning status. - If an API capability fails, delete this unclaimed page with
DELETE /api/agent/pages?slug=…and its provisioning key, fix the gap, then restart through the API. Deleted creations still count toward the quota. - Email the button with
POST /api/agent/claim-email, the provisioning bearer key and{"token":"TOKEN_FROM_CLAIM_URL"}(maximum 4 emails per owner per rolling 24 hours), or openclaimUrlin the owner's browser while logged out. The existing MyReach login design offers Link existing account or Create account and claim, then Google or an email code. A new account receives the already-built page after confirmation; it never enters page creation onboarding. The owner must verify the exactownerEmail; the claim link alone proves nothing. - After sign-in, select Confirm ownership. The page becomes permanent, appears in the owner's admin, and the temporary builder key is revoked. Further agent edits require a new owner-issued key.
Limits: 2 page creations per intended owner in a rolling 24 hours, shared across provisioning and owner creation, even after deletion; 10 creations per network per day; 20 bootstrap attempts per network per minute. Unclaimed pages, keys and claim links expire after 24 hours. Page snapshots: 2 MB maximum and 30 writes per page per minute. Honor 429 and Retry-After; rotating keys does not reset limits. Claiming respects account capacity (Free: 1 page; active Pro: 3). Wrong accounts and password-only sessions cannot claim. General signup is open; claim still requires Google or email verification for the exact intended owner.
Open admin views refresh saved API settings while idle or when focused. Unsaved edits stay local if another writer changes the page; stale saves are blocked. Browser saves require If-Match and older tabs must reload after a 428. API keys should also use conditional writes to protect owner edits.
Website colors, logos and durable media
Read GET /api/import/website?url=… before choosing a project palette. It returns the real brand primary/secondary, identity, socials and favicon; map its profile.bio to profile.tagline in a store snapshot. Apply brand colors with design.accent: "custom", design.primary and design.secondary. Theme can be null when the static source does not reveal the active mode; do not treat a missing suggestion as a failed color import.
Generic link rows automatically resolve declared favicons through GET /api/link/icon?url=…, including sites that have no /favicon.ico. Send theme=light or theme=dark for the row background; declared color-scheme variants prevent white marks disappearing on light pages. A saved item.image is an explicit icon choice. Header socials using iconStyle: "svg" use the actual brand mark in the current theme color; "logo" keeps the full bundled brand artwork.
Website/blog imports and store saves copy selected public images, logos and favicons to durable MyReach storage. GET /api/media/image?url=… serves those copies. On access after six hours, the server rechecks upstream with ETag/Last-Modified while returning the saved image immediately. It replaces bytes only when their content hash changes, retains the last good copy without a TTL during outages, and retries failed origins after 30 minutes. Re-import discovers replacement URLs when an upstream deployment changes hashed asset names.
Limits: validated public images up to 5 MiB; unsafe/private destinations rejected; 60 anonymous cold image fills per network per hour. Cached hits and refreshes do not consume that budget. A first-time image cannot be recovered while its original server is down; it needs the source to return or the original file to be supplied. Already saved MyReach copies keep working.
Make the first request
Verify the key before using it, then compare the returned slug with the page the owner authorized. A key for one page cannot access another page.
curl https://myreach.top/api/auth/whoami \ -H "Authorization: Bearer mr_live_YOUR_KEY"
Expected success includes the page scope and capability flags. A 401 means the key is missing, malformed, revoked, or unknown.
Authentication model
API keys are scoped to one page. Owner browser sessions can manage account-level settings. A page key cannot sign in as the owner, claim pages, or create, list, or revoke keys.
Authorization: Bearer mr_live_…Use for page-scoped agent endpoints.
mr_sessionUsed by the page owner in their signed-in browser.
The API reference also documents email-code and OAuth sign-in routes and owner account export at GET /api/auth/account-export?slug=… (also available at GET /api/auth/account?slug=…). Export requires the owner session and returns JSON with secrets redacted. Account deletion is DELETE /api/auth/account?slug=…. These routes do not accept page keys.
Key lifecycle
- Open
/admin→ Settings → AI agent access. - Name the integration, generate the key, and copy it to a server-side secret store.
- Use a separate key for each agent or environment, so access can be revoked independently.
- Revoke a key from the same screen when access ends. Revocation takes effect immediately.
Request conventions
- Use the HTTPS origin
https://myreach.top. - Send JSON writes with
Content-Type: application/json; send the key in theAuthorizationheader. - Use lowercase page slugs. Set
?slug=your-pagefor non-default pages; the key scope and requested slug must match. - Use the exact operation schemas in the interactive API reference or OpenAPI JSON.
Resource map
/api/pagesList pages owned by the signed-in account or create a page with {slug,name?}. A slugless account can create its first page here. Free accounts can own one page; active Pro accounts can own up to three. Page keys cannot list or create pages.
/api/store?slug=…Read the page snapshot and save editable page content. PUT is a full saved snapshot: read first and preserve all unrelated editable fields.
/api/bookingsRead recent owner booking records; requires the matching owner session or page key. Records contain visitor contact details.
/api/lead · /api/course/progressRead captured leads or course progress for the owned page; requires the matching owner session or page key.
/api/analytics?slug=…Read owner reports with the owner session or matching page key; record only consented visits or clicks publicly. Range is clamped to 7–90 days.
/api/blog/discover?slug=…Discover article cards from a public blog or article URL. The owner session or page key is required.
/api/link/meta?url=…Fetch a public site preview. LinkedIn and Instagram profile URLs may also return profileImage; MyReach pages return the latest saved avatar in image.
/api/github/preview · /api/github/chartFetch cached public GitHub profile or repository metadata, or a contribution graph as SVG.
/api/instagram/media?url=…Fetch a public Instagram post, reel, or TV-post image for a preview. Private posts and profile pages are not supported.
/api/pay/config?slug=…Read public payment readiness or validate the legacy settings payload. The PUT does not save settings; Stripe credentials stay platform-managed.
/api/pay/connect?slug=…Read Stripe Connect status, start hosted onboarding, or link an existing verified account. Requires owner session or matching page key; see the approval workflow below.
/api/pay/createCreate hosted Stripe checkout from saved card settings; price is read server-side. Paid bookings reserve a slot. GET /api/pay/status reports a booking hold or checkout state.
/api/calendar/{google|microsoft|calendly}/…?slug=…Read provider status, begin an OAuth connection, or disconnect a calendar. The owner session or matching page key is required, except the provider callback which uses one-time OAuth state.
/api/calendar/booking?slug=…&card=…Read the active booking provider and an optional public Calendly URL for a card.
/api/calendar/availability?slug=…&card=…&date=…List configured start times for one offer and page-local date. Google and Outlook busy intervals, existing bookings, and holds remove unavailable times. It does not reserve a slot. Calendly owns live availability; send visitors to its URL.
/api/bookings · /api/lead · /api/course/progressVisitor actions. Booking POST success means requested, not creator-confirmed. A page key is not needed to submit visitor actions.
The API reference documents page store, account sign-in, owner data export and keys, pages, bookings, leads, courses, analytics, payments, calendar connections, domain lookup, and public link previews. It is not a catalog of internal admin, provider webhook, or operational routes.
Set these values first. Use the slug returned by whoami and your page’s API key in the examples below.
export MYREACH_BASE_URL="https://myreach.top" export MYREACH_SLUG="your-claimed-page"
Read a page
Use your key and the page slug from whoami. A missing store snapshot may return 204 No Content; a published page with saved data returns a JSON snapshot.
curl "$MYREACH_BASE_URL/api/store?slug=$MYREACH_SLUG" \ -H "Authorization: Bearer mr_live_YOUR_KEY"
Update page content safely
PUT /api/store saves the editable snapshot. It does not merge a partial patch: the server filters editable fields, then stores the submitted snapshot. First read the snapshot, change only what the owner requested, and include all other editable slices in the PUT body. Private delivery URLs and files are stored separately and are not part of the public snapshot.
The snapshot includes design, sections, cards, booking settings, socials, and translations. English is primary; languages can hold up to two additional languages. Preserve every unrelated slice when editing.
# Save the complete edited snapshot in store.json, preserving other fields. curl -X PUT "$MYREACH_BASE_URL/api/store?slug=$MYREACH_SLUG" \ -H "Authorization: Bearer mr_live_YOUR_KEY" \ -H 'Content-Type: application/json' \ --data-binary @store.json
Update design and page sections
Freestyle design settings live in design: layout (cover, links, boutique, midnight, magazine), palette, font, page background, outline, icon/header shape, desktop mode, and per-layout button/card radii. desktopMode: "mobile-first" keeps the page in a narrow centered column on desktop. A frozen theme controls its own visual tokens. Cookie-consent and waitlist dialogs inherit the page theme and have no separate design fields.
sections controls page structure. A section can contain card indexes, testimonials, or a square/wide carousel. Carousel items use the shared focus treatment: the centered item is emphasized and neighboring items are dimmed. Social rows accept iconStyle: "svg" for the theme-colored MyReach glyph or "logo" for the original network mark. Link cards can set brandIcon; the six-option social, Instagram, WhatsApp, menu, review, and location sets use colorful artwork for choices 1–5 and an unframed theme-colored SVG glyph for choice 6. The top-left MyReach mark and top-right share control are global page chrome, not store fields.
These are full-snapshot edits: read the store, change requested fields, then PUT all editable data you want to keep. The OpenAPI schema lists current field names and enums.
Read owner data
Use these page-scoped reads to answer the owner or run an approved workflow. Do not expose one visitor's personal data outside the owner's authorized workflow.
curl "$MYREACH_BASE_URL/api/bookings?slug=$MYREACH_SLUG" -H "Authorization: Bearer mr_live_YOUR_KEY" curl "$MYREACH_BASE_URL/api/lead?slug=$MYREACH_SLUG" -H "Authorization: Bearer mr_live_YOUR_KEY" curl "$MYREACH_BASE_URL/api/course/progress?slug=$MYREACH_SLUG" -H "Authorization: Bearer mr_live_YOUR_KEY" curl "$MYREACH_BASE_URL/api/analytics?slug=$MYREACH_SLUG&range=30" -H "Authorization: Bearer mr_live_YOUR_KEY"
Submit bookings and visitor actions
Public submissions use the page slug and validated request body; they do not use the owner's key. For built-in bookings, fetch open times for the selected offer and date. Weekday slots and dates use the page's calendar time zone. Availability is only a check, not a reservation. POST /api/bookings rechecks the slot and creates a manual request with status requested; an active Google or Outlook calendar may get a tentative event. It does not mean the creator confirmed it, and there is no public confirm/cancel endpoint. A taken or out-of-schedule slot returns 409; unavailable storage or calendar checks return 503. Use POST /api/pay/create for a paid offer; it returns a hosted Stripe URL and uses the saved card price. Calendly visitors book on Calendly instead. Lead capture requires a name and contact. Course enrollment requires the matching paid checkout payment ID.
# Replace FUTURE_DATE with an upcoming YYYY-MM-DD date.
curl "$MYREACH_BASE_URL/api/calendar/availability?slug=$MYREACH_SLUG&card=0&date=FUTURE_DATE"
# Manual booking request; use card=fl for the featured offer.
curl -X POST "$MYREACH_BASE_URL/api/bookings?slug=$MYREACH_SLUG" -H 'Content-Type: application/json' --data '{"card":0,"name":"Visitor","mail":"[email protected]","date":"FUTURE_DATE","slot":"10:00"}'
# Paid booking checkout; the server reads the saved price and returns the Stripe URL.
curl -X POST "$MYREACH_BASE_URL/api/pay/create?slug=$MYREACH_SLUG" -H 'Content-Type: application/json' --data '{"kind":"booking","card":{"index":0},"name":"Visitor","mail":"[email protected]","date":"FUTURE_DATE","slot":"10:00"}'
Read each endpoint's request schema before sending a write. Payment creation and webhook fulfillment stay server-controlled; never claim payment success based on a browser redirect.
Connect calendars and payouts
The matching page key can read connection status, start Google Calendar, Microsoft Calendar, or Calendly OAuth, disconnect a provider, and start or link page-scoped Stripe Connect onboarding. Google and Microsoft busy intervals filter built-in availability; Calendly owns its live booking flow. These routes have external side effects. Get the owner’s approval first; return the provider redirect or hosted onboarding URL to the owner and let them complete consent or verification in their browser.
curl "$MYREACH_BASE_URL/api/calendar/providers?slug=$MYREACH_SLUG" \ -H "Authorization: Bearer mr_live_YOUR_KEY" # Start OAuth; give the owner the URL from the Location response header. curl -i "$MYREACH_BASE_URL/api/calendar/google/start?slug=$MYREACH_SLUG" \ -H "Authorization: Bearer mr_live_YOUR_KEY" # Stripe Connect creates or reuses a connected account and returns its hosted onboarding URL. curl -X POST "$MYREACH_BASE_URL/api/pay/connect?slug=$MYREACH_SLUG" \ -H "Authorization: Bearer mr_live_YOUR_KEY"
Account signup onboarding remains different: /api/onboarding/publish requires the owner’s signed-in session. A page key cannot publish a new account page.
Fetch link metadata and images
Public preview endpoints do not need an owner key. Pass an absolute public HTTP(S) URL; the server follows only a limited number of public redirects and rejects private network targets. Some social sites block automated fetches, so a failed preview can be a provider restriction rather than a bad link.
curl 'https://myreach.top/api/link/meta?url=https%3A%2F%2Fexample.com%2Farticle' curl 'https://myreach.top/api/link/meta?url=https%3A%2F%2Fexample.com%2Farticle&nocache=1'
The response includes title, description, image, and favicon. For supported Instagram and LinkedIn profile URLs, profileImage may contain the profile photo. For a published MyReach page, myreach: true marks the result and image is its latest saved avatar (or the platform icon when no avatar exists). Regular requests can return stale: true if the origin is unavailable; nocache=1 bypasses both cached results and that fallback.
GET /api/instagram/media?url=… returns raw image bytes for a public Instagram post, reel, or TV post. It does not fetch private posts or profile pages. Creator-page Open Graph and Twitter cards use the versioned public image route /og/u/<slug>.png; the page’s metadata points to a fresh image URL when its saved snapshot changes. These share images are public page output, not an owner-data API.
Responses and errors
Successful API calls return JSON unless the operation says otherwise. GET /api/store can return 204 when no snapshot exists. Error bodies use an error string; some validation and rate-limit operations also return flags such as limited.
Error handling and retries
400invalid JSON, missing fields, or an invalid value — fix the request before retrying.401key or owner session is missing, invalid, revoked, or does not own the requested slug.403action is not allowed, such as client-submitted booking analytics.404page, card, course student, or resource was not found.409requested booking slot is no longer available or conflicts with current state.413request or upload exceeds the endpoint's size limit.422an external URL could not be parsed or fetched.429rate limit reached — pause and retry with exponential backoff.5xxtemporary service or provider error — retry only safe/idempotent reads; check operation semantics before repeating writes.
Security
- Keep keys in a server-side secret store; never put them in browser code, prompts visible to other users, analytics, or logs.
- Use the least scope: one key is tied to one page. Ask the owner before reading leads, bookings, or student information.
- Never treat an agent key as owner sign-in credentials. The key cannot manage the owner's account or API keys.
- Do not send payment secrets or private delivery URLs to the browser.
Limits and retention
- Public page creation: 20 attempts per IP per minute, 2 creations per intended owner email per rolling 24 hours, and 10 creations per IP per rolling 24 hours. Builders on the same network share its quota. Deleting a page does not reset these counters.
- Unclaimed pages and builder keys expire after 24 hours. Claiming requires the intended owner’s verified email and explicit confirmation, then revokes the builder key.
- Temporary builders cannot upload private delivery files before ownership is claimed. Page content and public logos still use the page store API.
- Claim email delivery requires the matching builder key and claim token, always uses the intended owner address, and allows at most 4 emails per owner per rolling 24 hours.
These are basic abuse limits, not complete bot prevention. Creation does not verify the owner email first; rotating email addresses and networks can evade those quotas.
Rate limits differ by operation; follow the response code and retry guidance instead of assuming a global quota. Analytics stores daily aggregates, not raw IP addresses or full referrer URLs, and prunes records after 180 days. Booking and public submission routes have additional per-operation limits.
Out of scope for page keys
An account with no page slug must choose one in /admin → Settings → Profile → Choose your page link before it can edit page content. POST /api/pages creates that first page using the signed-in owner session. The session and API keys can write only pages the account owns; platform-admin status does not grant ownership of client pages. Demo pages and another account’s pages are never writable through this API. Page keys cannot create accounts, publish a new account page, claim pages, manage API keys, export or delete accounts, change subscription billing, or access platform-admin actions. Those account-level flows use the owner session. The separate public agent provisioning workflow above creates a temporary page and requires verified owner confirmation last. Page-key calendar routes and Stripe Connect payout onboarding are documented above; only initiate them with the owner’s approval. Signup workflows, private file delivery, account imports, funnel and growth automation, domain registration, subscription billing, payment webhooks, waitlist administration, platform administration, and health/host-routing routes are app or operational workflows, not part of the public agent API reference.