{"info":{"contact":{"email":"support@linkdr.com","name":"LinkDR support","url":"https://linkdr.com/contact"},"description":"LinkDR is a managed backlink service: real publisher placements priced by Domain Rating (DR), ordered one-time or monthly, fulfilled in 3-4 weeks.\n\nAgents have two doors:\n\n1. Managed backlinks (no auth needed to plan): fetch https://linkdr.com/SKILL.md, plan the DR-tier mix from the budget, then send the user one https://linkdr.com/agent/checkout URL. The user logs in and pays in the browser; the user MCP can also charge a card already saved on the project, after the user confirms the quote.\n2. User MCP (any LinkDR account): https://linkdr.com/mcp over Streamable HTTP with OAuth 2.1. Your own projects, orders, outreach progress, live links, and AI answers, plus cache-first keyword SERPs and domain metrics. It can also add a site and its keywords, answer site approvals, quote and order links (a saved card is charged only after the user confirms; otherwise it returns the checkout link), and send feedback. Docs: https://linkdr.com/docs/mcp.\nMachine-readable resources: this spec (https://linkdr.com/openapi.json), agent instructions (https://linkdr.com/llms.txt), the checkout skill (https://linkdr.com/SKILL.md), and docs (https://linkdr.com/docs).","termsOfService":"https://linkdr.com/terms","title":"LinkDR API","version":"1.0.0"},"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","openapi":"3.1.0","paths":{"/SKILL.md":{"get":{"description":"The LinkDR link-building agent skill (Agent Skills format). Fetch before quoting prices or building checkout URLs. Served as text/markdown by default; send Accept: text/plain for plain text. Complete only if the last line reads END SKILL v<version>.","operationId":"getAgentSkill","responses":{"200":{"content":{"text/markdown":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}}},"description":"Skill file"},"406":{"description":"Accept header matches neither text/markdown nor text/plain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Fetch the managed-backlinks agent skill","tags":["Agent resources"]}},"/api/health":{"get":{"description":"Process liveness for Coolify and Docker. Returns 200 with { ok: true } when the Next.js process can serve a request. Does not probe Stripe, Resend, or the database. No authentication.","operationId":"getHealth","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}},"description":"Process is up"}},"summary":"Check process liveness","tags":["System"]}},"/llms.txt":{"get":{"description":"Site map and guidance for AI agents: when to use LinkDR, both integration doors, developer resources, and an index of pages worth fetching.","operationId":"getLlmsTxt","responses":{"200":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"llms.txt content"}},"summary":"Fetch the llms.txt agent index","tags":["Agent resources"]}},"/markdown/{path}":{"get":{"description":"Markdown rendering of any public marketing, checkout, or docs page (for example /markdown/pricing or /markdown/docs/get-started). Unknown paths return HTTP 404 with recovery links in the body.","operationId":"getPageMarkdown","parameters":[{"description":"Page path without the leading slash, e.g. pricing or docs/get-started.","in":"path","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/markdown":{"schema":{"type":"string"}}},"description":"Markdown representation of the page"},"404":{"content":{"text/markdown":{"schema":{"type":"string"}}},"description":"No markdown for this path; body lists recovery links"}},"summary":"Fetch a page as Markdown","tags":["Agent resources"]}},"/mcp":{"post":{"description":"Model Context Protocol endpoint over Streamable HTTP (JSON-RPC 2.0; POST messages, optional SSE streams).\n\nUser MCP for any LinkDR account: linkdr_list_my_projects, linkdr_get_my_project, linkdr_list_my_orders, linkdr_list_my_pending_approvals, linkdr_get_my_ai_answers, linkdr_create_my_project, linkdr_update_my_project_strategy, linkdr_decide_my_site_approval, linkdr_order_backlinks, linkdr_submit_feedback, and cache-first research (linkdr_get_domains, linkdr_search_keywords, linkdr_get_keyword_serp, linkdr_search_domains). No contact emails. Tool catalog: https://linkdr.com/docs/mcp.\n\nAuth: OAuth 2.1 via Better Auth. Discover https://linkdr.com/.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server first; unauthenticated requests receive 401 with WWW-Authenticate. Dynamic client registration is supported. Any signed-in LinkDR account. Banned accounts receive 403. Rate limit: 60 requests/hour per user (429 with Retry-After).","operationId":"mcpStreamableHttp","requestBody":{"description":"JSON-RPC 2.0 request","content":{"application/json":{"schema":{"description":"A single MCP JSON-RPC 2.0 message (initialize, tools/list, tools/call, ...)","properties":{"id":{"type":["integer","string"]},"jsonrpc":{"const":"2.0","type":"string"},"method":{"examples":["initialize","tools/list","tools/call"],"type":"string"},"params":{"type":"object"}},"required":["jsonrpc","method"],"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}},"text/event-stream":{"schema":{"type":"string"}}},"description":"JSON-RPC result (or SSE stream for requests that opt in)"},"400":{"description":"Malformed JSON-RPC message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or expired OAuth token; carries WWW-Authenticate pointing at the protected resource metadata"},"403":{"description":"Origin not allowed or banned account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"MCP disabled via MCP_DATA_ENABLED=false","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hourly rate limit exceeded; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"McpOAuth":["openid","email"]}],"summary":"User MCP server (Streamable HTTP)","tags":["MCP"]}},"/openapi.json":{"get":{"description":"This document. Fetch it to discover the API surface programmatically.","operationId":"getOpenApiSpec","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OpenAPI 3.1 specification"}},"summary":"Fetch this OpenAPI specification","tags":["System"]}},"/api/domains/quick-info":{"get":{"description":"Return cached marketplace metrics for one domain.","operationId":"getDomainQuickInfo","parameters":[{"description":"Domain, e.g. example.com.","in":"query","name":"domain","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainQuickInfo"}}},"description":"Metrics (nulls when unknown)"},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Domain quick info","tags":["Public data"]}}},"servers":[{"description":"Production","url":"https://linkdr.com"}],"tags":[{"description":"Managed-backlink skill, llms.txt index, and per-page markdown negotiation.","name":"Agent resources"},{"description":"Your projects, orders, and links, plus cache-first research, behind OAuth 2.1 (any LinkDR account).","name":"MCP"},{"description":"Read-only endpoints that work without an account, subject to rate limits.","name":"Public data"},{"description":"Health and machine-readable metadata.","name":"System"}],"components":{"schemas":{"DomainQuickInfo":{"description":"Marketplace metrics for one host; any field may be null when unknown.","properties":{"description":{"description":"Meta description of the site.","type":["string","null"]},"domainRating":{"description":"Ahrefs-style Domain Rating, 0-100.","type":["integer","null"]},"domainTraffic":{"description":"Monthly organic traffic estimate.","type":["integer","null"]},"name":{"description":"Site display name.","type":["string","null"]},"screenshotPath":{"description":"Path to a cached homepage screenshot, relative to the site origin.","type":["string","null"]}},"type":"object"},"Error":{"description":"Structured error returned by all /api failures. Agents should read code and hint.","properties":{"error":{"properties":{"code":{"description":"Stable machine-readable code.","enum":["BAD_REQUEST","NOT_FOUND","METHOD_NOT_ALLOWED","UNAUTHORIZED","FORBIDDEN","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR"],"type":"string"},"hint":{"description":"Resolution hint for the caller.","type":"string"},"message":{"description":"Human-readable summary.","type":"string"},"status":{"description":"HTTP status repeated in the body.","type":"integer"}},"required":["code","message","status"],"type":"object"}},"type":"object"},"HealthStatus":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"},"JsonRpcResponse":{"description":"MCP JSON-RPC 2.0 response envelope.","properties":{"error":{"type":"object"},"id":{"type":["integer","string"]},"jsonrpc":{"const":"2.0","type":"string"},"result":{"type":"object"}},"required":["jsonrpc"],"type":"object"}},"securitySchemes":{"McpOAuth":{"description":"OAuth 2.1 authorization-code flow with PKCE (required) for the MCP server. Authorization server metadata: https://linkdr.com/.well-known/oauth-authorization-server. Dynamic client registration is accepted. The server is its own protected resource (https://linkdr.com/mcp), so a token is audience-bound to it.","flows":{"authorizationCode":{"authorizationUrl":"/api/auth/oauth2/authorize","refreshUrl":"/api/auth/oauth2/token","scopes":{"email":"Identify the account by email address during sign-in","offline_access":"Receive a refresh token so long-running agent sessions stay connected until revoked","openid":"Sign in with a LinkDR account","profile":"Read the account display name"},"tokenUrl":"/api/auth/oauth2/token"}},"type":"oauth2"},"SessionCookie":{"description":"Dashboard session cookie (better-auth.session_token) issued by browser sign-in. Endpoints under this scheme serve the logged-in app and its rate limits; there is no header-token alternative yet.","in":"cookie","name":"better-auth.session_token","type":"apiKey"}}}}