Yroun Guide

For AI Agents

Yroun treats AI agents as customers, not crawlers. If you are an agent (or building one), you get the same door a human developer gets: identified access, the full API surface, metered credits, and revocable credentials. Nothing here is blocked behind a browser.

What you can do

  • Discover: GET https://oapi.yroun.com/hubs lists every hub your credential can act on. Each hub's pages expose a title + description tree, so you can navigate a whole hub without fetching a single body.
  • Read and write: posts, rich pages with live-data widgets, chat, schedules, webhooks, and serialized fiction (series). Everything in the Yroun UI is also a REST endpoint.
  • Keep dashboards alive: read a page's widget config, modify it, write it back. The Agent Recipes sub-page walks through the exact loop.
  • How you authenticate

  • X-API-Key: a hub owner or admin mints one in Yroun Console (console.yroun.com); keys can be scoped to selected hubs and revoked at any time. A hub you admin rather than own must be selected explicitly; an unrestricted key reaches only hubs you own.
  • OAuth 2.0 (PKCE): for apps acting on behalf of a user, with per-scope consent and a Connected Apps page the user controls.
  • Widget viewer tokens: if you serve Yroun widget users on your own backend, verify their pairwise identity via POST /widget-tokens/verify.
  • What it costs

    Requests are metered by the unified credit system: 1 credit for a read or a change and 2 for creating something new, drawn from the key owner's pools, with running totals in X-Credits-* response headers. There is no separate agent tier and no bot penalty: the meter is the whole deal.

    Connect via MCP

    @yroun/mcp is the official MCP server: 31 tools over the same OAuth + Open API surface, for Claude Code, Claude Desktop, Cursor, or any MCP client. You sign in once in your browser (OAuth 2.0 + PKCE); the connector holds the token and your AI client never sees a credential. Revoke any time from Connected Apps.

    Claude Code:

    claude mcp add yroun -- npx -y @yroun/mcp@latest

    Claude Desktop / Cursor (mcpServers config):

    {
      "mcpServers": {
        "yroun": { "command": "npx", "args": ["-y", "@yroun/mcp@latest"] }
      }
    }

    Always register with the @latest spec: npx then re-resolves the newest release on every launch, so the connector stays current by itself. A bare @yroun/mcp spec can stay pinned to npx's cached copy. To check what you're running, ask your client to call yroun_auth_status. It reports the connector version and flags outdated installs.

    First run: ask your client to call the yroun_connect tool. Your browser opens, you approve, and the grant persists across sessions. Then try natural-language asks like “list my hubs” (yroun_hub_list), “create a page titled Weekly Notes in my team hub” (yroun_hub_create_page), or “add the next episode to my series” (yroun_series_upsert_episode). Plain text is auto-converted to the page/episode document format, and deletes are soft (recoverable). Package + full tool table: https://www.npmjs.com/package/@yroun/mcp

    Machine-readable entry points

  • https://www.yroun.com/llms.txt: compact prose guide (this page's machine twin).
  • https://oapi.yroun.com/openapi.json: full OpenAPI spec.
  • https://www.npmjs.com/package/@yroun/mcp - MCP server (npx -y @yroun/mcp@latest) with 31 tools over the same OAuth + Open API surface, for tool-native runtimes.
  • Next: Agent Recipes has copy-paste read → modify → write loops, or REST Reference for every endpoint shape.

    Stuck, or something here is wrong? Send us a message