{"openapi":"3.1.0","info":{"title":"Sites in the Woods: check and start without an account","version":"1","description":"Check a site once, start watching a site's uptime for someone with no account, key or email, read its results, and forget the results link. The team API (with a key) is at /openapi.json. Errors are RFC 9457 problem details."},"servers":[{"url":"https://sitesinthewoods.com"}],"security":[],"components":{"schemas":{"Error":{"type":"object","properties":{"type":{"type":"string","description":"RFC 9457: this error's row in the docs (/api/docs#error-<code>)"},"title":{"type":"string","description":"RFC 9457: the error in a few words, the same for every error of its code"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the HTTP status"},"detail":{"type":"string","description":"what went wrong, for a person (the same as message)"},"error":{"type":"string","enum":["unauthorized","forbidden","not_found","method_not_allowed","conflict","idempotency_key_in_flight","idempotency_key_reused","validation_error","request_too_large","rate_limited","auth_unavailable","busy"],"description":"the code to branch on"},"message":{"type":"string","description":"what went wrong (kept beside detail for older clients)"},"suggestion":{"description":"what to do about it","type":"string"},"next_steps":{"description":"calls that fix this or come next","type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST"],"description":"GET, or POST for a write"},"path":{"type":"string","description":"the path to call"},"why":{"type":"string","description":"what it answers"},"tool":{"description":"the MCP tool that makes this call","type":"string"}},"required":["method","path","why"],"additionalProperties":false}},"issues":{"description":"for validation_error: each parameter that's wrong","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"the parameter, as a dotted path"},"message":{"type":"string","description":"what's wrong with it"}},"required":["path","message"],"additionalProperties":false}}},"required":["type","title","status","detail","error","message"],"additionalProperties":false}}},"paths":{"/check":{"post":{"operationId":"check_site","summary":"Check a site once: what search engines and agents find","description":"Reads a domain's robots.txt, homepage, sitemap, 404 page and the files agents look for, scores it A to F, and keeps the report at /check/<domain> (or only at its own address, with private). Send JSON: a form post is taken only from our own pages. A report from the last 10 minutes is answered instead of a new look (fresh). A site whose owner asked us not to look, or whose robots.txt names site-monitor, isn't read.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"The site's domain or address: example.com"},"private":{"description":"Keep the report off the domain's page: it's only at its own address. Default false","type":"boolean"}},"required":["domain"]}}}},"responses":{"200":{"description":"The report","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"The domain the report is about"},"host":{"type":"string","description":"The host that was read"},"checked_at":{"type":"string","description":"When the look was made (ISO 8601, UTC)"},"confirmed_at":{"type":"string","description":"The newest look that found the same (ISO 8601, UTC)"},"checks_version":{"type":"string","description":"The checks' version: /check/method#changes says what each changed"},"report":{"type":"string","description":"The report's own page (its permalink)"},"method":{"type":"string","description":"How the check reads and scores"},"unreachable":{"description":"Why the site couldn't be read, or null","type":["string","null"]},"opted_out":{"type":"boolean","description":"The site's robots.txt asks our scanner not to look"},"score":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 to 100: earned over possible, rounded down"},"grade":{"type":"string","enum":["A","B","C","D","F"],"description":"The grade band"},"word":{"type":"string","description":"The band's word: Ready, Mostly ready, Needs work, Hard to use or Closed"},"scope":{"type":"string","enum":["content","app"],"description":"Scored as a content site, or as a site with an API (its API files count)"},"cap":{"description":"Why the grade is held at D, or null","type":["string","null"]},"questions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"description":"Each question's own score (reach, understand, work, trust, shop), or null when nothing in it counted"},"verdict":{"type":"string","description":"What it adds up to, in our words"},"covers":{"type":"string","description":"What the look read, and so what the score covers: not the pages it didn't read"},"with_every_fix":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The score with every fix made"}},"required":["score","grade","word","scope","cap","questions","verdict","covers","with_every_fix"],"additionalProperties":false},{"type":"null"}],"description":"The score, or null when the site couldn't be scored"},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Stable across looks: what reports compare"},"question":{"type":"string","description":"The question it answers: reach, understand, work, trust or shop"},"label":{"type":"string","description":"Its name, in our words"},"state":{"type":"string","enum":["ok","warn","missing","na","unknown"],"description":"ok, warn (partly), missing, na (doesn't apply) or unknown (couldn't check this time)"},"text":{"type":"string","description":"What we found, in our words"},"fix":{"description":"How to fix it, when there's something to fix","type":"string"},"tier":{"description":"The standard's tier: newer ones count at half weight","type":["string","null"]},"weight":{"type":"number","description":"What it's worth in the score"},"gain":{"description":"Points fixing it would add","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","question","label","state","text","tier","weight"],"additionalProperties":false},"description":"Each finding"},"fresh":{"type":"boolean","description":"True when a report from the last 10 minutes was answered without a new look"},"private":{"type":"boolean","description":"A private report is only at its own address, not on the domain's page"},"data":{"type":"string","description":"This report as data"},"markdown":{"type":"string","description":"This report in Markdown, with each fix"},"message":{"type":"string","description":"What happened, in words"},"next_steps":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST"]},"path":{"type":"string"},"why":{"type":"string"}},"required":["method","path","why"],"additionalProperties":false},"description":"The calls that usually come next"}},"required":["domain","host","checked_at","confirmed_at","checks_version","report","method","unreachable","opted_out","score","findings","fresh","private","data","markdown","message","next_steps"],"additionalProperties":false}}}},"400":{"description":"No domain, or not a public domain (validation_error)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A form post from outside our pages: send JSON instead (forbidden)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The site's owner asked us not to show reports about it (conflict)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"A body over 2 KB (request_too_large)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many looks this minute or today from this address; see Retry-After (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Looking at too many sites at once, or the look didn't finish; see Retry-After (busy)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/check/{domain}/data.json":{"get":{"operationId":"get_check_report","summary":"A domain's latest public report, as data","description":"The newest public report for a domain, the same data POST /check answers. Reading never starts a look. A private report is at its own address: the report's permalink plus /data.json.","security":[],"parameters":[{"name":"domain","in":"path","required":true,"description":"The domain: example.com","schema":{"type":"string","description":"The domain: example.com"}}],"responses":{"200":{"description":"The report","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"The domain the report is about"},"host":{"type":"string","description":"The host that was read"},"checked_at":{"type":"string","description":"When the look was made (ISO 8601, UTC)"},"confirmed_at":{"type":"string","description":"The newest look that found the same (ISO 8601, UTC)"},"checks_version":{"type":"string","description":"The checks' version: /check/method#changes says what each changed"},"report":{"type":"string","description":"The report's own page (its permalink)"},"method":{"type":"string","description":"How the check reads and scores"},"unreachable":{"description":"Why the site couldn't be read, or null","type":["string","null"]},"opted_out":{"type":"boolean","description":"The site's robots.txt asks our scanner not to look"},"score":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 to 100: earned over possible, rounded down"},"grade":{"type":"string","enum":["A","B","C","D","F"],"description":"The grade band"},"word":{"type":"string","description":"The band's word: Ready, Mostly ready, Needs work, Hard to use or Closed"},"scope":{"type":"string","enum":["content","app"],"description":"Scored as a content site, or as a site with an API (its API files count)"},"cap":{"description":"Why the grade is held at D, or null","type":["string","null"]},"questions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"description":"Each question's own score (reach, understand, work, trust, shop), or null when nothing in it counted"},"verdict":{"type":"string","description":"What it adds up to, in our words"},"covers":{"type":"string","description":"What the look read, and so what the score covers: not the pages it didn't read"},"with_every_fix":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The score with every fix made"}},"required":["score","grade","word","scope","cap","questions","verdict","covers","with_every_fix"],"additionalProperties":false},{"type":"null"}],"description":"The score, or null when the site couldn't be scored"},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Stable across looks: what reports compare"},"question":{"type":"string","description":"The question it answers: reach, understand, work, trust or shop"},"label":{"type":"string","description":"Its name, in our words"},"state":{"type":"string","enum":["ok","warn","missing","na","unknown"],"description":"ok, warn (partly), missing, na (doesn't apply) or unknown (couldn't check this time)"},"text":{"type":"string","description":"What we found, in our words"},"fix":{"description":"How to fix it, when there's something to fix","type":"string"},"tier":{"description":"The standard's tier: newer ones count at half weight","type":["string","null"]},"weight":{"type":"number","description":"What it's worth in the score"},"gain":{"description":"Points fixing it would add","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","question","label","state","text","tier","weight"],"additionalProperties":false},"description":"Each finding"}},"required":["domain","host","checked_at","confirmed_at","checks_version","report","method","unreachable","opted_out","score","findings"],"additionalProperties":false}}}},"404":{"description":"No public report for this domain (not_found)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/start":{"post":{"operationId":"start_watching","summary":"Start watching a site, with no account, key or email","description":"Starts checking a site's homepage now, for someone who has no account yet, and answers a private results link and a claim link for the person the agent works for. A site already being watched answers already_watching with new links to the same checks. No one is alerted until a person claims it. A site whose owner asked us not to look, or whose robots.txt names site-monitor, isn't started.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The site's address or domain: example.com"}},"required":["url"]}}}},"responses":{"200":{"description":"Already watched: new links to the same checks","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"watching","description":"Always watching: the site's homepage is being checked"},"outcome":{"type":"string","enum":["started","already_watching"],"description":"started: a new monitor (201); already_watching: someone started this site before, and these are new links to the same checks (200)"},"site":{"type":"string","description":"The host being checked"},"checked_every":{"type":"string","description":"The schedule, in words"},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How often the homepage is checked, in seconds: every 30 minutes at first, once a day after 30 days unclaimed"},"last_checked_at":{"description":"The newest check, or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"next_check_at":{"description":"When the next check is due (the newest plus the interval), or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"alerts_enabled":{"type":"boolean","const":false,"description":"Always false until a person claims the site: no one is alerted"},"watching_since":{"type":"string","description":"When it was first started (ISO 8601, UTC)"},"results":{"type":"string","description":"The results link, for the agent only: keep it private"},"claim":{"type":"string","description":"The claim link, for the person the agent works for: signing in from it adds the site to their team, with its history only if the team has verified the domain"},"claim_expires_at":{"type":"string","description":"When the claim link stops working; renew it with POST /start/s/{token}/claim (ISO 8601, UTC)"},"message":{"type":"string","description":"What happened and what to do with each link, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["status","outcome","site","checked_every","interval_seconds","last_checked_at","next_check_at","alerts_enabled","watching_since","results","claim","claim_expires_at","message","next_steps"],"additionalProperties":false}}}},"201":{"description":"Started: a new monitor","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"watching","description":"Always watching: the site's homepage is being checked"},"outcome":{"type":"string","enum":["started","already_watching"],"description":"started: a new monitor (201); already_watching: someone started this site before, and these are new links to the same checks (200)"},"site":{"type":"string","description":"The host being checked"},"checked_every":{"type":"string","description":"The schedule, in words"},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How often the homepage is checked, in seconds: every 30 minutes at first, once a day after 30 days unclaimed"},"last_checked_at":{"description":"The newest check, or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"next_check_at":{"description":"When the next check is due (the newest plus the interval), or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"alerts_enabled":{"type":"boolean","const":false,"description":"Always false until a person claims the site: no one is alerted"},"watching_since":{"type":"string","description":"When it was first started (ISO 8601, UTC)"},"results":{"type":"string","description":"The results link, for the agent only: keep it private"},"claim":{"type":"string","description":"The claim link, for the person the agent works for: signing in from it adds the site to their team, with its history only if the team has verified the domain"},"claim_expires_at":{"type":"string","description":"When the claim link stops working; renew it with POST /start/s/{token}/claim (ISO 8601, UTC)"},"message":{"type":"string","description":"What happened and what to do with each link, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["status","outcome","site","checked_every","interval_seconds","last_checked_at","next_check_at","alerts_enabled","watching_since","results","claim","claim_expires_at","message","next_steps"],"additionalProperties":false}}}},"400":{"description":"No url, or not a public domain (validation_error)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Its owner opted out, or the domain has as many waiting sites as we take (conflict)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"A body over 4 KB (request_too_large)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many starts this hour from this address, or we're full (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/start/s/{token}":{"get":{"operationId":"get_start_results","summary":"An unclaimed site's results","description":"What the results link answers: while the site is unclaimed, its status, where its checks stand and its status data; once someone claims it, only that it was claimed and when (their team reads it with its own key).","security":[],"parameters":[{"name":"token","in":"path","required":true,"description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site","schema":{"type":"string","description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site"}}],"responses":{"200":{"description":"The site's results","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"site":{"type":"string","description":"The host being checked"},"status":{"type":"string","description":"up, down or unknown"},"claimed":{"type":"boolean","const":false,"description":"False while no one has claimed it"},"checked_every":{"type":"string","description":"The schedule, in words"},"alerts":{"type":"string","description":"Who is alerted, in words: no one until it's claimed"},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How often the homepage is checked, in seconds: every 30 minutes at first, once a day after 30 days unclaimed"},"last_checked_at":{"description":"The newest check, or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"next_check_at":{"description":"When the next check is due (the newest plus the interval), or null before the first (ISO 8601, UTC); null when there's none","type":["string","null"]},"alerts_enabled":{"type":"boolean","const":false,"description":"Always false until a person claims the site: no one is alerted"},"watching_since":{"type":"string","description":"When it was first started (ISO 8601, UTC)"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The site's status data: the same shape as a public status page's data.json"}},"required":["site","status","claimed","checked_every","alerts","interval_seconds","last_checked_at","next_check_at","alerts_enabled","watching_since","data"],"additionalProperties":false},{"type":"object","properties":{"claimed":{"type":"boolean","const":true,"description":"Someone claimed the site: their team reads it now, with its own key"},"claimed_at":{"type":"string","description":"When it was claimed (ISO 8601, UTC)"},"message":{"type":"string","description":"What that means, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["claimed","claimed_at","message","next_steps"],"additionalProperties":false}]}}}},"404":{"description":"No unclaimed site has this link (not_found)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many reads this minute (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/start/s/{token}/claim":{"post":{"operationId":"renew_claim_link","summary":"A new claim link for your person","description":"Makes a fresh claim link for an unclaimed site, from its results link's token, when you hand it over or your person lost theirs. It works for 7 days; the previous one stops working. Give it to the person you work for, and only them.","security":[],"parameters":[{"name":"token","in":"path","required":true,"description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site","schema":{"type":"string","description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site"}}],"responses":{"200":{"description":"A new claim link","content":{"application/json":{"schema":{"type":"object","properties":{"claim":{"type":"string","description":"A new claim link for the person the agent works for; the previous one stops working"},"claim_expires_at":{"type":"string","description":"When it stops working (ISO 8601, UTC)"},"message":{"type":"string","description":"What to tell the person, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["claim","claim_expires_at","message","next_steps"],"additionalProperties":false}}}},"404":{"description":"No site has this results link (not_found)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The site is already claimed (conflict)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this minute (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/start/s/{token}/forget":{"post":{"operationId":"forget_results_link","summary":"Forget a results link","description":"Stops this results link working. The site's checks go on: they end when it's claimed, after a year unclaimed, or when its owner opts out.","security":[],"parameters":[{"name":"token","in":"path","required":true,"description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site","schema":{"type":"string","description":"The results link's token (sr_…): the end of the `results` link POST /start answered. Private: never post it or send it to another site"}}],"responses":{"200":{"description":"Forgotten","content":{"application/json":{"schema":{"type":"object","properties":{"forgotten":{"type":"boolean","const":true,"description":"The link no longer works"},"message":{"type":"string","description":"What still happens, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["forgotten","message","next_steps"],"additionalProperties":false}}}},"404":{"description":"No unclaimed site has this link (not_found)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this minute (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-destructive":true}},"/feedback":{"post":{"operationId":"give_feedback","summary":"Tell us where you got stuck, what answered wrong, or what's missing","description":"A person reads every message. Use it when something blocks you or answers wrong, as it happens: what you were trying to do, what you called, and what got in the way. With a key, your team is recorded; without one, nothing identifies you. Never include a key, a token or a private link.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":2000,"description":"What happened, in your own words: what you were trying to do, what you called, and what got in the way (at most 2000 characters). Never include a key, a token or a private link"},"category":{"description":"stuck: something blocked you; wrong: an answer or doc was wrong; missing: something you needed isn't there; praise: something worked well","type":"string","enum":["stuck","wrong","missing","praise"]},"tool":{"description":"The tool, route or operation it's about (an identifier, like check or POST /start)","type":"string","pattern":"^[A-Za-z][A-Za-z0-9_./-]{0,79}$"},"severity":{"description":"high: you couldn't finish what your person asked","type":"string","enum":["low","high"]}},"required":["message"]}}}},"responses":{"201":{"description":"Received","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","const":true,"description":"Always true"},"message":{"type":"string","description":"What happens next, in words"},"next_steps":{"type":"array","items":{},"description":"The calls that usually come next"}},"required":["received","message","next_steps"],"additionalProperties":false}}}},"400":{"description":"No message, or a field that isn't one of the allowed values (validation_error)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"A body over 8 KB (request_too_large)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many messages this hour from this address, or from everyone (rate_limited)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}