{"openapi":"3.1.0","info":{"title":"UrlDone","version":"0.1.0","description":"The check your coding agent runs before it says done. Identical to the MCP tools at /mcp."},"servers":[{"url":"https://urldone.dev/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"ud_…"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"docs_url":{"type":"string"},"top_up_url":{"type":"string"},"retry_after_seconds":{"type":"integer"}}}}},"CheckVerdict":{"type":"object","required":["verdict","reasons","http_status","load_ms","console_errors","failed_requests","broken_links","expectations","screenshot_url","credits_remaining","free_checks_remaining","internal"],"properties":{"verdict":{"enum":["pass","fail"]},"reasons":{"type":"array","items":{"type":"string"}},"http_status":{"type":["integer","null"]},"load_ms":{"type":["integer","null"]},"console_errors":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"text":{"type":"string"}}}},"failed_requests":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"error":{"type":"string"},"status":{"type":"integer"}}}},"broken_links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"status":{"type":["integer","null"]}}}},"expectations":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"pass":{"type":"boolean"},"why":{"type":"string"}}}},"screenshot_url":{"type":["string","null"]},"credits_remaining":{"type":"number"},"free_checks_remaining":{"type":"number"},"internal":{"type":"boolean"}}}}},"paths":{"/create_account":{"post":{"security":[],"summary":"Mint an API key","description":"Mint a UrlDone API key with 20 free checks. No human form. Optional owner_email and source (registry|smithery|glama|mcp.so|pulsemcp|npm|cli|llms.txt|referral|internal|other). source=internal is attribution only — it does not grant billing exemption. Rate-limited by IP. Returns api_key — store it and send Authorization: Bearer <api_key> on later calls.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"owner_email":{"type":"string","format":"email"},"source":{"enum":["registry","smithery","glama","mcp.so","pulsemcp","npm","cli","llms.txt","referral","internal","other"]}}}}}},"responses":{"200":{"description":"API key minted"},"429":{"description":"IP rate limit"}}}},"/check_url":{"post":{"summary":"Check a URL","description":"Open a public http(s) URL in headless Chromium and return a compact JSON verdict (pass|fail). Use this before you tell a human you are done. Optional expectations (plain English), bypass_token for Vercel Deployment Protection, viewport, wait_for (selector, ms, or load|networkidle). Costs 1 credit (or 1 free check). Our crashes/timeouts are not charged. If credits are 0, the error includes top_up_url for the human owner.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"expectations":{"type":"array","items":{"type":"string"}},"bypass_token":{"type":"string"},"viewport":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}}},"wait_for":{"oneOf":[{"type":"string"},{"type":"integer"}]}}}}}},"responses":{"200":{"description":"Verdict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckVerdict"}}}},"402":{"description":"Out of credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/get_balance":{"get":{"summary":"Balance","description":"Return credits_remaining, free_checks_remaining, and a Stripe Checkout top_up_url for this API key."},"post":{"summary":"Balance","description":"Return credits_remaining, free_checks_remaining, and a Stripe Checkout top_up_url for this API key."}}},"externalDocs":{"url":"https://urldone.dev/llms.txt"}}