MyReach API reference
Build and manage creator pages with scoped access. Browse every endpoint below, or open the interactive explorer for schemas, examples and requests.
Browse API categories
Agent provisioning
POST/api/agent/pagesProvision a page before owner sign-in
Public bootstrap; no cookie or key needed. Accepts at most 8 KB. Returns a temporary page key and claimUrl once; save both securely. Limits: 2 creations per intended owner per rolling 24 hours (shared with owner POST /api/pages; deletion never refunds quota), 10 per network per 24 hours and 20 attempts per network per minute. Uses atomic shared storage. Limits deter bursts; rotating unverified emails and networks can bypass them. Temporary builders cannot upload private delivery files before ownership is claimed. Build with PUT /api/store?slug=...; then hand claimUrl to the owner. Normal account page caps apply at claim time (Free: 1, active Pro: 3). Unclaimed pages expire after 24 hours. A lost response cannot recover the key: retain responses and check slug conflicts before retrying.
Response codes: 201, 400, 403, 409, 413, 429, 503.
Link to this endpointGET/api/agent/pagesRead provisioning status using the page key
Read provisioning status using the page key
Parameters
slug· query · required
Response codes: 200, 401.
Link to this endpointDELETE/api/agent/pagesDelete an unclaimed page and revoke its key
Only the original provisioning key may delete its own unclaimed page. Removes the page, provisional owner, key and claim link. Creation quota is retained. Once claimed, use owner account controls; the builder cannot delete it.
Parameters
slug· query · required
Response codes: 200, 401, 403, 409, 503.
Link to this endpointGET/api/agent/claimInspect a valid owner claim link
Inspect a valid owner claim link
Parameters
token· query · required
Response codes: 200, 404.
Link to this endpointPOST/api/agent/claimClaim and publish the reviewed revision after owner verification
Use the existing /login?claim=... screen. Requires an mr_session for the exact intended email authenticated with email code, magic link or verified Google email. Password sessions and API keys cannot claim. Owner must explicitly confirm. Normal account page limit applies. Confirmation is idempotent, makes the page permanent, and revokes the provisioning key. A new intended owner can complete claim sign-in even while general signup is waitlisted; the token alone never signs anyone in. The claim screen verifies the intended owner email and automatically creates an account if needed or retains the existing account; no new/existing account choice or separate signup is required. Legacy account=new/account=existing claim return paths remain accepted. Confirmation links the already-built page and skips page creation onboarding. Free accounts allow one page; active Pro accounts allow three. A full account gets a 403 account_page_limit_reached error, and the unclaimed draft stays private. Accepts at most 8 KB, including chunked requests. Public content stays unavailable until this confirmation. Include expectedRevision from the current GET claim response. A stale revision returns 412; missing revision returns 428. Claim tokens permit status inspection after claim but never ongoing editing.
Response codes: 200, 400, 401, 403, 404, 409, 412, 413, 428, 503.
Link to this endpointPOST/api/agent/claim-emailEmail the intended owner a claim button after the page is ready
Requires the original temporary provisioning key and its claim token. The server chooses the recipient from ownerEmail; agents cannot choose another recipient or email URL. Sends a branded Claim your page button. The owner chooses Link existing account or Create account and claim, verifies Google/email, then confirms. Account creation skips page onboarding. Maximum 4 claim emails per owner per rolling 24 hours. Delivery acceptance does not prove inbox receipt. Accepts at most 8 KB, including chunked requests.
Response codes: 200, 401, 403, 413, 429, 502, 503.
Link to this endpointGET/api/agent/previewPreview an unclaimed private page
Uses the actual storefront renderer. Claim token grants private read access only. No-store, noindex, no-referrer. Optional revision pins the preview; changed revisions return 409. data=1 returns a sanitized JSON snapshot.
Parameters
token· query · requiredrevision· querydata· query
Response codes: 200, 404, 409.
Link to this endpointAuth model
GET/api/auth/whoamiVerify API key scope
Verify an API key and return its page scope, plan and capabilities.
Response codes: 200, 401, default.
Link to this endpointAPI keys
GET/api/auth/keysList page API keys
List active API keys for the owned page. Secret values are never returned.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointPOST/api/auth/keysCreate a page API key or claim a page
Create a page-scoped key, or claim a first page with {claim:true,slug}. Claiming requires an owner session with no page; key creation requires ownership of the requested slug.
Response codes: 200, default.
Link to this endpointDELETE/api/auth/keysRevoke a page API key
Revoke one key for the owned page. The revoked key stops authenticating immediately.
Response codes: 200, default.
Link to this endpointAccounts & sign-in
POST/api/auth/signupCreate an account
Create a human account with name, email, password (8–256 chars) and slug, or provision an agent account with email, slug and agent:true. The claim:true form claims a first page for a signed-in owner. Successful account signup sets mr_session.
Response codes: 200, default.
Link to this endpointGET/api/auth/checkCheck page slug availability
Check a page slug. Reserved names count as taken.
Parameters
slug· query · required
Response codes: 200, 400, default.
Link to this endpointPOST/api/auth/password/loginSign in with email and password
Sign in with email and password. Agent-provisioned accounts cannot use password login. Successful login sets the mr_session cookie.
Response codes: 200, 401, default.
Link to this endpointPOST/api/auth/magic/requestRequest an email sign-in link
Request a one-time sign-in link by email. Development may return devLink when email delivery is not configured.
Response codes: 200, default.
Link to this endpointGET/api/auth/oauth/startStart provider sign-in
Start Google or AgentID sign-in. Successful requests redirect to the provider.
Parameters
provider· query · requiredredir· query
Response codes: 302, default.
Link to this endpointGET/api/auth/sessionRead the current session
Return the signed-in account, or user:null for an anonymous visitor.
Response codes: 200, default.
Link to this endpointPUT/api/auth/profileUpdate the owner profile
Update the signed-in owner’s display name or account type. A non-empty slug must belong to that account; this route does not claim or create a page. Use POST /api/pages to choose a slug for a slugless account.
Response codes: 200, default.
Link to this endpointGET/api/auth/accountExport owner account data
Download a JSON export of the signed-in owner's account data for the requested page. Sensitive credentials and signed URLs are redacted. Requires the owner session; API keys are not accepted.
Parameters
slug· query · required
Response codes: 200, 401, 404.
Link to this endpointDELETE/api/auth/accountDelete the owner account
Permanently delete the signed-in account and its owned page data.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointGET/api/auth/account-exportDownload owner account data
Download the same owner-only JSON export as GET /api/auth/account. Sensitive credentials and signed URLs are redacted. This explicit export route requires the owner session; API keys are not accepted.
Parameters
slug· query · required
Response codes: 200, 401, 404.
Link to this endpointGET/api/auth/providersList configured sign-in providers
Return which sign-in providers are enabled by the current runtime configuration.
Response codes: 200, default.
Link to this endpointGET/api/auth/magic/verifyVerify an email sign-in link
Consume a one-time magic link. A valid link sets mr_session and redirects to the saved return path or admin page.
Parameters
token· query · required
Response codes: 302, default.
Link to this endpointGET/api/auth/oauth/callbackComplete provider sign-in
OAuth provider callback. A valid callback creates or resumes the account session and redirects to its destination.
Parameters
provider· query · requiredcode· query · requiredstate· query · required
Response codes: 302, default.
Link to this endpointPOST/api/auth/otp/requestRequest an email sign-in code
Send a six-digit one-time code to an existing account. Codes expire after 10 minutes. In invite-only mode, unknown emails receive 403; development may return devCode when development auth links are enabled. Requests are rate limited.
Response codes: 200, 400, 403, 429, 502, 503, default.
Link to this endpointPOST/api/auth/otp/verifyVerify an email sign-in code
Verify the six-digit code for its email address. Codes expire after 10 minutes, can be used once, and allow up to five wrong-code attempts. Success creates a seven-day owner session.
Response codes: 200, 400, 401, 429, 503, default.
Link to this endpointPOST/api/auth/logoutSign out the current owner session
Clear the current mr_session cookie, if present, and redirect to /login.
Response codes: 302, default.
Link to this endpointPage store
GET/api/storeRead a page snapshot
Read a page snapshot. Public reads are CDN cached; owner/key reads are no-store. Returns 204 when no snapshot has been saved.
Parameters
slug· queryIf-None-Match· header
Response codes: 200, 204, 304, default.
Link to this endpointPUT/api/storeReplace the editable page snapshot
Replace the saved editable page snapshot for this slug. This is not a partial merge: read the current snapshot first, apply the requested changes, and include every editable slice you want to retain. Design, language, sections, social icon style, booking configuration, and cards live in this snapshot. Private delivery URLs and files are moved to private storage. A page key can modify only its own slug. Limits: page saves accept at most 2 MB and 30 writes per page per minute. API changes are reflected by active admin views. Owner browser saves must include If-Match; stale admin tabs cannot overwrite newer API edits.
Parameters
slug· queryIf-Match· header
Response codes: 200, 412, 428, 429, default.
Link to this endpointBookings
GET/api/bookingsList page bookings
List up to the latest 100 booking records for the owned page, newest first. Records contain visitor contact details; requires the owner session or matching page-scoped API key.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointPOST/api/bookingsSubmit a booking request
Create a public manual booking request for an enabled booking/coaching card and configured future local date/time. The server rechecks configured weekdays and slots, active Google/Outlook calendar conflicts, existing holds, and other bookings before claiming the slot. The response means requested, not creator-confirmed; an active Google or Outlook calendar may receive a tentative event. A conflict returns 409; if storage or active calendar availability cannot be checked, it returns 503. Calendly bookings happen on Calendly and are not submitted here. Use /api/pay/create for paid booking checkout.
Parameters
slug· query
Response codes: 200, 409, 429, 503, default.
Link to this endpointGET/api/calendar/availabilityList available booking times
Return available configured start times for one enabled booking offer and local date, excluding existing bookings and active holds. Google and Outlook modes also check provider busy intervals. Calendly owns live availability; this endpoint returns configured page-offer times only and does not reserve a slot. Event details and credentials are never returned. Public and rate limited. If the calendar check fails, return 503 and do not treat a time as free.
Parameters
slug· query · requiredcard· query · requireddate· query · required
Response codes: 200, 400, 404, 429, 503.
Link to this endpointLeads
POST/api/leadSubmit a lead
Capture a public lead. Name and contact are required; optional fields are saved with the lead.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointGET/api/leadList page leads
List leads for the owned page. Requires owner session or a page API key.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointCourses
POST/api/course/progressEnroll or update course progress
Enroll a paid student or mark a lesson complete/incomplete. Enroll requires the matching paid checkout paymentId, course idx and mail. Unknown students return 404.
Response codes: 200, default.
Link to this endpointGET/api/course/progressList course students
List course students for the owned page. Requires owner session or a page API key.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointAnalytics
GET/api/analyticsRead aggregate analytics
Read privacy-safe aggregate analytics for the owned page. Requires owner session or a page API key.
Parameters
slug· queryrange· query
Response codes: 200, default.
Link to this endpointPOST/api/analyticsRecord consented page activity
Record consented visits, link clicks, or active visible-page time. The service stores daily aggregates only; booking/revenue analytics are server-controlled.
Response codes: 200, 403, 429, default.
Link to this endpointPayments
GET/api/pay/configRead public payment status
Read public payment configuration status for a page. Secrets are never exposed.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointPUT/api/pay/configValidate payment settings compatibility payload
Compatibility endpoint for existing page settings. It validates a JSON object and rejects payment credential fields, but does not persist submitted settings; Stripe credentials and readiness are platform-managed. Use /api/pay/connect for an owner-authorized Stripe Connect onboarding flow.
Parameters
slug· query
Response codes: 200, default.
Link to this endpointPOST/api/pay/createCreate a checkout session
Create a public Stripe checkout for a saved booking, product or course card. Price and checkout rules come from the saved card; a client-supplied amount is ignored. Paid bookings require a configured future local date and slot, then reserve that slot for up to four days; the Stripe Checkout session expires after 23 hours. Failed or expired checkout releases the claim; delayed payment can extend it for 30 days. A successful paid booking confirms the connected Google or Outlook event. Product/course requires kind and card.index. Name and email are required.
Parameters
slug· query
Response codes: 200, 409, 502, 503, default.
Link to this endpointGET/api/pay/statusCheck booking or checkout status
Publicly poll a single booking hold or checkout payment; returns free, hold, or paid, with post-payment access details when available. Missing booking query fields return status=free.
Parameters
card· querydate· queryslot· queryslug· querypayment· query
Response codes: 200, default.
Link to this endpointGET/api/pay/connectRead Stripe Connect status
Read safe onboarding and readiness status for the owned page. Requires the owner session or matching page-scoped API key. The response may include the Stripe connected-account ID and due requirement names; it never returns provider credentials.
Parameters
slug· query
Response codes: 200, 401, 502, default.
Link to this endpointPOST/api/pay/connectStart Stripe Connect onboarding
Create or reuse a Stripe Express connected account for the owned page, then return a hosted onboarding URL. This operation has an external financial-provider side effect. Require the owner’s approval, and have the owner complete the returned URL. Requires the owner session or matching page-scoped API key.
Parameters
slug· query
Response codes: 200, 401, 404, 502, 503, default.
Link to this endpointPUT/api/pay/connectLink a verified Stripe Connect account
Link an existing Stripe connected-account ID after MyReach verifies that Stripe metadata associates it with this page. Requires the owner session or matching page-scoped API key.
Parameters
slug· query
Response codes: 200, 400, 401, 403, 404, 503, default.
Link to this endpointDomains
GET/api/domains/searchSearch available .top domains
Search for affordable .top domain names.
Parameters
q· query · required
Response codes: 200, 429, default.
Link to this endpointPages (Pro)
GET/api/pagesList owned pages
List pages owned by the signed-in account with the selected analytics window.
Parameters
range· query
Response codes: 200, default.
Link to this endpointPOST/api/pagesCreate an owned page
Create another page for the signed-in account. Free plans allow one page; active Pro allows three. At most 2 page creations per owner per rolling 24 hours, shared with agent provisioning.
Response codes: 200, 429, default.
Link to this endpointPublic unfurls — GitHub · links
GET/api/github/chartRead a public GitHub chart
Return a contribution graph as SVG. A stale cached chart includes X-Chart-Stale: 1.
Parameters
user· query · requiredtheme· query
Response codes: 200, 400, 502, default.
Link to this endpointGET/api/github/previewPreview a public GitHub profile or repo
Fetch a cached GitHub user/organization or repository preview. A stale cached response sets stale=true.
Parameters
user· query · requiredrepo· querynocache· query
Response codes: 200, default.
Link to this endpointGET/api/link/metaFetch public website metadata
Fetch title, description, image, and favicon from a public HTTP(S) URL. On supported LinkedIn or Instagram profile URLs, profileImage may contain the extracted profile photo; published MyReach creator pages set myreach=true and return the latest saved avatar in image (or the MyReach icon if no avatar exists). Normal requests may return stale=true when an origin is unavailable. Some providers block automated fetches.
Parameters
url· query · requirednocache· querytheme· query
Response codes: 200, default.
Link to this endpointGET/api/instagram/mediaFetch a public Instagram post image
Return the poster image for a public Instagram post, reel, or TV post as raw image bytes. Only instagram.com post URLs are accepted; the upstream image must come from cdninstagram.com. Responses may be cached. This endpoint does not access private posts or accounts.
Parameters
url· query · required
Response codes: 200, 400, 502.
Link to this endpointGET/api/link/iconResolve the destination website’s declared favicon
Reads the origin home page metadata, including non-/favicon.ico icons. Redirects to the durable MyReach image cache when storage is configured. Platform/custom icon choices remain available.
Parameters
url· query · requiredtheme· query
Response codes: 302, 400, 404, 502.
Link to this endpointGET/api/media/imageServe a durable local copy of a public remote image
Public image only, 5 MiB maximum actual bytes; accepts validated PNG/JPEG/WebP/AVIF/GIF/SVG/ICO content. DNS-pinned fetch rejects private targets and unsafe redirects. Uses existing STORE_KV metadata and FILES_BUCKET bytes; no TTL on last-good copies. On access after six hours, cached hits return immediately while background revalidation sends upstream ETag/Last-Modified validators. A 304 or identical content hash updates metadata only; changed bytes create a new cached object. Origin failures retain the last-good image and retry after 30 minutes. A fresh miss is negatively cached for five minutes. Never-cached images cannot be recovered during an origin outage. Re-import discovers replacement URLs when a website deployment changes hashed asset paths. SVG uses sandbox CSP and nosniff. Anonymous cold fills are capped at 60 per network per hour; cached hits and refreshes do not consume that budget.
Parameters
url· query · requiredIf-None-Match· header
Response codes: 200, 304, 400, 429, 502, 503.
Link to this endpointGET/api/import/websiteRead website identity, socials and brand tokens
Public read-only website import. Returns profile name/bio/avatar, socialLinks, brand primary/secondary/font, favicon, pageTheme and found flags. Explicit semantic primary/secondary tokens take precedence over unrelated error/alert colors. Theme may be null when static source has no trustworthy active mode. With media storage configured, logo and favicon are copied locally and returned as absolute MyReach cache URLs. Map profile.bio to store profile.tagline; use the returned brand primary instead of forcing a preset color.
Parameters
url· query · required
Response codes: 200, 400, 502.
Link to this endpointBlog feeds
POST/api/blog/discoverDiscover posts from a public blog URL
Fetch and parse an owner-approved public blog, article, RSS, Atom, or JSON Feed URL. Requires the matching owner session or page-scoped API key. Discovery is read-only; it does not publish or save posts. The result contains at most ten feed entries or article previews. Private, loopback, and otherwise non-public destinations are rejected.
Parameters
slug· query
Response codes: 200, 400, 401, 413, 422, default.
Link to this endpointCalendar connections
GET/api/calendar/bookingGet the active booking URL
Read the active booking provider and, for a Calendly offer, its safe public scheduling URL. No owner credentials are returned. A returned Calendly URL sends the visitor to Calendly for live availability and booking.
Parameters
slug· querycard· query
Response codes: 200, default.
Link to this endpointGET/api/calendar/providersRead calendar provider status
Read whether calendar providers are configured and connected for the owned page. Requires the owner session or matching page-scoped API key. Emails and profile names are returned only as connection labels; access tokens remain private.
Parameters
slug· query
Response codes: 200, 401, default.
Link to this endpointGET/api/calendar/google/startStart Google Calendar connection
Begin Google OAuth for the owned page and redirect to the provider consent screen. Requests identity, calendar.events.freebusy (availability on calendars the account can access), and calendar.events.owned (view/create/change/delete events on calendars the account owns). MyReach currently checks availability and creates retry-safe booking events with invitations; it does not otherwise use those event permissions. Requires the owner session or matching page-scoped API key. The callback uses one-time server-side state and PKCE, then returns to the safe internal admin path. Agents should get owner approval and hand the returned redirect URL to the owner to complete consent.
Parameters
slug· queryreturnTo· query
Response codes: 302, 400, 401, 501, default.
Link to this endpointGET/api/calendar/google/callbackComplete Google Calendar connection
Provider OAuth callback. The one-time state binds this response to the page and internal return path created by the start operation. This callback is intentionally unauthenticated; provider authorization code and state are required.
Parameters
code· querystate· query · requirederror· query
Response codes: 302, 400, 501, default.
Link to this endpointDELETE/api/calendar/google/disconnectDisconnect Google Calendar
Revoke or remove the Google connection for the owned page. Requires the owner session or its matching page-scoped API key.
Parameters
slug· query
Response codes: 200, 401, default.
Link to this endpointGET/api/calendar/microsoft/startStart Microsoft Calendar connection
Begin Microsoft OAuth for the owned page and redirect to the provider consent screen. Requests delegated calendar read/write access for the signed-in owner; it does not request tenant-wide mailbox access. Requires the owner session or the matching page-scoped API key. The callback uses one-time server-side state and PKCE, then returns to the safe internal admin path. Agents should get owner approval and hand the returned redirect URL to the owner to complete consent.
Parameters
slug· queryreturnTo· query
Response codes: 302, 400, 401, 501, default.
Link to this endpointGET/api/calendar/microsoft/callbackComplete Microsoft Calendar connection
Provider OAuth callback. The one-time state binds this response to the page and internal return path created by the start operation. This callback is intentionally unauthenticated; provider authorization code and state are required.
Parameters
code· querystate· query · requirederror· query
Response codes: 302, 400, 501, default.
Link to this endpointDELETE/api/calendar/microsoft/disconnectDisconnect Microsoft Calendar
Revoke or remove the Microsoft connection for the owned page. Requires the owner session or its matching page-scoped API key.
Parameters
slug· query
Response codes: 200, 401, default.
Link to this endpointGET/api/calendar/calendly/startStart Calendly Calendar connection
Begin Calendly OAuth for the owned page and redirect to the provider consent screen. Requests account and active event-type read access to resolve the connected user's scheduling URL; Calendly hosts scheduling. Requires the owner session or the matching page-scoped API key. The callback uses one-time server-side state and PKCE, then returns to the safe internal admin path. Agents should get owner approval and hand the returned redirect URL to the owner to complete consent.
Parameters
slug· queryreturnTo· query
Response codes: 302, 400, 401, 501, default.
Link to this endpointGET/api/calendar/calendly/callbackComplete Calendly Calendar connection
Provider OAuth callback. The one-time state binds this response to the page and internal return path created by the start operation. This callback is intentionally unauthenticated; provider authorization code and state are required.
Parameters
code· querystate· query · requirederror· query
Response codes: 302, 400, 501, default.
Link to this endpointDELETE/api/calendar/calendly/disconnectDisconnect Calendly Calendar
Revoke or remove the Calendly connection for the owned page. Requires the owner session or its matching page-scoped API key.
Parameters
slug· query
Response codes: 200, 401, default.
Link to this endpoint