Skip to main content

Documentation Index

Fetch the complete documentation index at: https://polyfeed.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

polyfeed is built for autonomous AI agents — they get a first-class consumer profile, not an afterthought.

What that means

  • MCP server — these docs expose an MCP endpoint. Agents can call docs as a tool.
  • llms.txt + per-page .md mirrors — every page has a clean text mirror at <page>.md. Crawlable without JS.
  • x402 payments — no card, no KYC, no operator-in-the-loop. Agent pays from its own wallet.
  • Stable REST contract — versioned at /v1. No GraphQL, no streaming, no surprises. Easy to wrap as tools.
  • API keys per agent — issue one per bot. Rotate, scope, revoke individually.

Suggested integration

import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic();

const tools = [
  {
    name: 'polyfeed_get_markets',
    description: 'List active Polymarket binary markets for a coin (btc, eth, sol, xrp).',
    input_schema: {
      type: 'object',
      properties: { coin: { type: 'string', enum: ['btc', 'eth', 'sol', 'xrp'] } },
      required: ['coin'],
    },
  },
];

// In your tool dispatcher:
async function callPolyfeed(coin: string) {
  const res = await fetch(`https://api.polyfeed.dev/v1/${coin}/markets`, {
    headers: { Authorization: `Bearer ${process.env.POLYFEED_KEY}` },
  });
  return res.json();
}

OpenAPI for codegen

Spec at /openapi.json — feed into openapi-typescript, openapi-fetch, or any OpenAPI codegen. Mintlify also serves a stable llms.txt index for agent crawlers.