{"openapi":"3.1.0","info":{"title":"BOTERNITY public API","version":"3.0.0","description":"Free utilities for AI agents: read and watch web pages, audit MCP servers, transform data, persistent notebooks, time tools. Same tools as the MCP server at /api/public/v4/mcp. No authentication needed; an optional access key raises quotas."},"servers":[{"url":"https://boternity.com/api/public/v4"}],"components":{"securitySchemes":{"accessKey":{"type":"http","scheme":"bearer","description":"Optional BOTERNITY access key (btk_...)"}}},"security":[{},{"accessKey":[]}],"paths":{"/tools/read_page":{"post":{"operationId":"read_page","summary":"read page","description":"Read a public web page as clean Markdown with metadata and outline. Paginated; robots.txt respected.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL."},"start_index":{"type":"integer","minimum":0,"description":"Offset to continue a long page."},"max_length":{"type":"integer","minimum":500,"maximum":20000,"description":"Default 8000."},"include_links":{"type":"boolean","description":"Also return links."}},"required":["url"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/check_site_for_agents":{"post":{"operationId":"check_site_for_agents","summary":"check site for agents","description":"Can AI agents use a site, or buy from a shop? Grade A-F, fixes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Site URL."},"profile":{"type":"string","enum":["site","shop"]}},"required":["url"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/watch_page":{"post":{"operationId":"watch_page","summary":"watch page","description":"Watch a public page and keep each diff. action start (url, optional selector, keywords, webhook) returns an id; then get, check_now or stop with that id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","description":"Default start.","enum":["start","get","check_now","stop"]},"url":{"type":"string","description":"Public http(s) URL."},"interval_minutes":{"type":"integer","minimum":60,"maximum":10080,"description":"Default 360."},"selector":{"type":"string","description":"CSS selector to watch, e.g. 'main .price'."},"keywords":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10,"description":"Words to track."},"webhook_url":{"type":"string","description":"https URL POSTed on change."},"id":{"type":"string","description":"Watch id, for get, check_now, stop."},"history":{"type":"integer","minimum":1,"maximum":10,"description":"Diffs for get (default 5)."}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/test_mcp_server":{"post":{"operationId":"test_mcp_server","summary":"test mcp server","description":"Audit a remote MCP server you may test: score /100 with fixes (schemas, tokens, CORS, latency). Returns report_id; call again with report_id for the full report.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"MCP endpoint URL."},"probe_tool":{"type":"object","description":"Optional tool call to try.","properties":{"name":{"type":"string","description":"Tool name."},"arguments":{"type":"object","description":"Its arguments."}},"required":["name"]},"report_id":{"type":"string","description":"Id of an earlier audit: returns its report."}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/find_mcp_server":{"post":{"operationId":"find_mcp_server","summary":"find mcp server","description":"Best public MCP servers for a need or tool name, checked continuously; or one server's live status. No argument: current incidents.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"need":{"type":"string","description":"e.g. postgres, web search."},"tool":{"type":"string","description":"e.g. send_email."},"limit":{"type":"integer","minimum":1,"maximum":20,"description":"Default 5."},"min_score":{"type":"integer","minimum":0,"maximum":100},"include_auth":{"type":"boolean","description":"Add servers needing sign-in."},"sort":{"type":"string","enum":["best","lightest"],"description":"lightest: fewest tokens, grade A/B."},"client":{"type":"string","enum":["claude","chatgpt","cursor","vscode"],"description":"Only servers it can add."},"read_only":{"type":"boolean","description":"All tools declared read-only."},"up_now":{"type":"boolean","description":"Only servers up now."},"server":{"type":"string","description":"Name or URL: up, slow or down?"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/get_data":{"post":{"operationId":"get_data","summary":"get data","description":"Fresh open data feeds: weather, exchange rates, earthquakes, disaster alerts, public holidays, trending topics, exploited CVEs, package versions, service status, AI papers, Hacker News, and key_numbers: BOTERNITY's own citable numbers on the MCP ecosystem.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"feed":{"type":"string","description":"Data feed.","enum":["weather","exchange_rates","earthquakes","disaster_alerts","public_holidays","trending_topics","exploited_vulnerabilities","package_info","service_status","ai_papers","hacker_news","key_numbers","feeds_status"]},"params":{"type":"object","description":"weather: city or latitude+longitude, days. exchange_rates: base, symbols[], amount, date. earthquakes: min_magnitude, hours, latitude, longitude, radius_km, sort, limit. disaster_alerts: type, min_alert_level, country, current_only, limit. public_holidays: country (ISO2, required), year, upcoming_only, date (business day check). trending_topics: language, limit. exploited_vulnerabilities: cve, query, since, ransomware_only, limit. package_info: ecosystem (npm|pypi), name. service_status: service (omit: incidents). ai_papers: category, query, limit. hacker_news: list (top|best|ask|show), limit. key_numbers: group or id (omit: all)."}},"required":["feed"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/notebook":{"post":{"operationId":"notebook","summary":"notebook","description":"Memory across sessions. action create returns a secret notebook token; then write, read (one key, or list) or delete notes. Notes expire 30 days after last use.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","description":"Operation.","enum":["create","write","read","delete"]},"notebook":{"type":"string","description":"Token from action create."},"key":{"type":"string","description":"Note name, e.g. todo (letters, digits, _.:/-)."},"value":{"type":"string","description":"Note text (write, up to 8000 characters)."},"prefix":{"type":"string","description":"Read: list names with this prefix."}},"required":["action"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/process_data":{"post":{"operationId":"process_data","summary":"process data","description":"Convert JSON/CSV/XML, validate or query JSON, analyze or clean a table, compare two tables or two texts. Errors give line and column.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"string","description":"Operation.","enum":["convert","inspect_json","analyze_table","clean_table","compare"]},"data":{"anyOf":[{"type":"string"},{"type":"array"}],"description":"Document text, or table rows (array of flat objects)."},"from_format":{"type":"string","description":"convert: source.","enum":["json","csv","xml"]},"to_format":{"type":"string","description":"convert: target.","enum":["json","csv","xml"]},"pointer":{"type":"string","description":"inspect_json: RFC 6901 pointer, e.g. /items/0."},"before":{"anyOf":[{"type":"string"},{"type":"array"}],"description":"compare: old text or rows."},"after":{"anyOf":[{"type":"string"},{"type":"array"}],"description":"compare: new text or rows."},"key":{"type":"string","description":"compare: key column of rows, e.g. id."},"options":{"type":"object","description":"delimiter, pretty (convert); trim, empty_to_null, dedupe, parse_numbers, normalize_keys (clean_table, booleans)."}},"required":["operation"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/tools/time":{"post":{"operationId":"time","summary":"time","description":"Current time in any IANA timezone, timezone conversion (daylight saving aware), exact duration between two date-times, next runs of a cron expression.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"string","description":"Default now.","enum":["now","convert","duration","cron"]},"timezone":{"type":"string","description":"IANA timezone (target of convert), default UTC."},"datetime":{"type":"string","description":"convert: e.g. 2026-03-29T01:30:00Z."},"from_timezone":{"type":"string","description":"convert: if no offset."},"start":{"type":"string","description":"duration: ISO 8601."},"end":{"type":"string","description":"duration: ISO 8601."},"expression":{"type":"string","description":"cron: e.g. */15 9-17 * * mon-fri."},"after":{"type":"string","description":"cron: start (default now)."},"count":{"type":"integer","minimum":1,"maximum":20,"description":"cron: runs (default 5)."}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string"},"result":{"type":"object"}}}}}},"422":{"description":"Invalid arguments","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"503":{"description":"Tool disabled by the operator","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/resources":{"get":{"operationId":"list_catalog","summary":"List verified catalog resources","description":"Verified extracts of specifications (MCP, HTTP, OpenAPI, robots.txt...).","parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","enum":["catalog","documentation","examples"]}}],"responses":{"200":{"description":"Catalog page"}}}},"/resources/{id}":{"get":{"operationId":"read_catalog_resource","summary":"Read one catalog resource","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"Resource"},"404":{"description":"Unknown resource"}}}},"/requests":{"post":{"operationId":"request_resource","summary":"Tell BOTERNITY what you need","description":"Reviewed privately; returns an id and a status_url.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["topic"],"additionalProperties":false,"properties":{"topic":{"type":"string","enum":["catalog","documentation","examples"]},"need":{"type":"string","minLength":3,"maxLength":280}}}}}},"responses":{"202":{"description":"Request received"}}}}}}