RELAYTO logo

RELAYTO Site API: public REST API, OpenAPI and MCP for every published site

Every site published with RELAYTO has a public, read-only REST API, an OpenAPI spec and an MCP server. No API key. Endpoints, examples and limits.

Every site published with RELAYTO, on a *.relayto.com address or on the publisher's own domain, has a public, read-only REST API and MCP server. No API key and no sign-in: they return exactly what any visitor can open without signing in. Replace <site> below with the site's host name, for example benefits.relayto.com.

Endpoints at a glance

WhatWhere
REST APIhttps://<site>/api/site/v1
OpenAPI spechttps://<site>/openapi.json
API referencehttps://<site>/developers
MCP serverhttps://<site>/mcp (tools: search_content, list_hubs, get_content)
For LLMshttps://<site>/llms.txt, and any page as Markdown at <page URL>.md

REST API endpoints

  • GET /api/site/v1/: the site and its API links
  • GET /api/site/v1/search?q=…: search pages, hubs and documents
  • GET /api/site/v1/pages: the site's own pages
  • GET /api/site/v1/hubs, /hubs/{hubSlug}, /hubs/{hubSlug}/items: hubs and what they contain
  • GET /api/site/v1/contents, /contents/{contentSlug}: documents, with the full text of every page as Markdown
  • POST /api/site/v1/exports, GET /api/site/v1/exports/{exportId}: Markdown of up to 10 documents at once

Lists are paginated with cursors; errors use application/problem+json. The full reference, with rate limits and error codes, is on each site's /developers page.

Try it

curl "https://benefits.relayto.com/api/site/v1/search?q=open%20enrollment"
npx relayto search "open enrollment" --site benefits.relayto.com

Use a site from an AI agent

claude mcp add --transport http benefits https://benefits.relayto.com/mcp

For clients that only start local servers:

npx -y relayto-mcp --site benefits.relayto.com

All sites are listed in the official MCP Registry as com.relayto/site-content.

What stays private

Content behind a password, a sign-in or an email form is never returned in full. Private content answers 403 with code not_public; email-gated content returns its description only.

Links