{"openapi":"3.1.0","info":{"title":"ISP Monitoring API","version":"1.2.1","description":"Manage your own domains and check them through supported US ISP networks. Checks are synchronous. Customer responses contain measurement evidence; supplier identity, allocation identifiers, provider transport diagnostics and infrastructure cost estimates are operator-only. A valid usable measurement costs one credit; invalid infrastructure or inconclusive measurements are refunded atomically; retries within that check do not cost extra. At zero, new checks stop before proxy traffic. Read history before retrying a timed-out call."},"servers":[{"url":"https://api.checkbyisp.com/api/v1"}],"security":[{"bearerAuth":[]}],"paths":{"/me":{"get":{"operationId":"getAccount","summary":"Read credits and account limits","responses":{"200":{"description":"Your account and effective plan limits","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"checkCredits":{"type":"integer"},"allNetworksEnabled":{"type":"boolean"},"plan":{"type":["object","null"],"properties":{"websiteLimit":{"type":"integer"},"networksPerMonitorLimit":{"type":["integer","null"],"description":"null means all supported networks allowed"}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/networks":{"get":{"operationId":"listNetworks","summary":"List enabled ISP networks","responses":{"200":{"description":"Available networks","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Network"}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/monitors":{"get":{"operationId":"listMonitors","summary":"List your monitors and recent results","responses":{"200":{"description":"Your monitors","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Monitor"}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createMonitor","summary":"Add a monitored URL","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMonitor"}}}},"responses":{"201":{"description":"Created monitor; checks are triggered separately","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"No active plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/monitors/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getMonitor","summary":"Read a monitor and recent results","responses":{"200":{"description":"Monitor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateMonitor","summary":"Change URL, label, networks or expected HTTP codes","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","minProperties":1,"properties":{"url":{"type":"string","format":"uri","description":"Full HTTP/HTTPS URL, including any path and query string. No embedded credentials."},"label":{"type":"string","maxLength":200},"networkIds":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string"}},"allNetworks":{"type":"boolean","const":true},"expectedStatusCodes":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"integer","minimum":400,"maximum":599},"default":[],"description":"Additional acceptable codes; 200–399 remain accepted. Example: [404] for tracking domains."}},"description":"At least one setting. If selecting networks, supply either networkIds or allNetworks, never both."}}}},"responses":{"200":{"description":"Updated monitor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"No active plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMonitor","summary":"Delete your monitor and its check history","responses":{"204":{"description":"Deleted"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/monitors/{id}/run-check":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"checkMonitor","summary":"Check selected ISPs sequentially; charge only usable measurements","responses":{"200":{"description":"Results for all selected ISPs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Credits exhausted; any completed checks remain saved and charged","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"completedChecks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}}]}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/monitors/{id}/networks/{networkId}/run-check":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"networkId","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"checkSingleIsp","summary":"Measure one selected ISP; at most one credit","responses":{"200":{"description":"Saved result, including raw HTTP code and reachability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"No check credits left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/monitors/{id}/networks/{networkId}/checks":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"networkId","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getIspHistory","summary":"Read up to 30 recent results for one ISP","responses":{"200":{"description":"Results, newest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Account access or plan limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Create an API key in /api-access. Use Authorization: Bearer isp_live_... . Keys expire and can be revoked; they never grant admin access."}},"schemas":{"CheckAttempt":{"type":"object","properties":{"id":{"type":"string"},"attemptNumber":{"type":"integer"},"measurementSource":{"type":"string"},"measurementHealth":{"type":"string"},"networkCode":{"type":"string"},"networkName":{"type":"string"},"networkType":{"type":"string","enum":["RESIDENTIAL","MOBILE"]},"requestedAsns":{"type":"array","items":{"type":"integer"}},"exitIpBefore":{"type":["string","null"]},"exitIpAfter":{"type":["string","null"]},"exitIpStable":{"type":["boolean","null"]},"exitAsn":{"type":["integer","null"]},"exitAsnOrganization":{"type":["string","null"]},"exitCountry":{"type":["string","null"]},"exitRegion":{"type":["string","null"]},"proxyVerified":{"type":"boolean","description":"Allowed ASN, healthy control traffic and equal before/after exit IP on a provider sticky allocation. This is not packet-level proof for every connection."},"proxyVerificationReason":{"type":"string"},"pathConsistency":{"type":"string","enum":["VERIFIED","UNVERIFIED"]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"},"durationMs":{"type":["integer","null"]},"browserResult":{"type":["object","null"],"additionalProperties":true,"properties":{"initialUrl":{"type":"string"},"finalUrl":{"type":["string","null"]},"httpStatus":{"type":["integer","null"]},"redirectChain":{"type":"array","items":{"type":"object","properties":{"status":{"type":"integer"},"from":{"type":"string"},"to":{"type":"string"}}}},"pageTitle":{"type":["string","null"]},"reachable":{"type":"boolean"},"expectedHttpResponse":{"type":"boolean"},"domContentLoadedMs":{"type":["integer","null"]},"durationMs":{"type":"integer"},"errorCode":{"type":["string","null"]},"errorMessage":{"type":["string","null"]},"contentObservation":{"type":["object","null"],"additionalProperties":true},"tlsObservation":{"type":["object","null"],"additionalProperties":true},"clientRedirectChain":{"type":"array","items":{"type":["object","null"],"additionalProperties":true},"description":"Observed main-document URL transitions not represented by a direct HTTP redirect."},"captureObservation":{"type":["object","null"],"additionalProperties":true,"description":"Bounded document observation. SETTLED means finalUrl/title/content were captured together. screenshotConsistent means the JPEG belongs to that URL/navigation generation, not atomic pixel/DOM equivalence or a guarantee about future JavaScript.","properties":{"state":{"enum":["SETTLED","TIMED_OUT","NAVIGATION_FAILED"]},"capturedAt":{"type":["string","null"]},"documentUrl":{"type":["string","null"]},"screenshotConsistent":{"type":"boolean"}}}}},"dnsObservation":{"$ref":"#/components/schemas/DnsObservation"},"controlObservation":{"type":["object","null"],"additionalProperties":true},"exitObservation":{"type":["object","null"],"additionalProperties":true},"asnObservation":{"type":["object","null"],"additionalProperties":true},"screenshotUrl":{"type":["string","null"]}}},"DnsObservation":{"type":["object","null"],"additionalProperties":true,"description":"Separate DNS-over-TCP A/AAAA/CNAME observations. Unsupported is not healthy. Nonzero RCODE is not proof of ISP blocking. DNS socket identity remains UNVERIFIED.","properties":{"supported":{"type":"boolean"},"checked":{"type":"boolean"},"transport":{"const":"TCP"},"queryTypes":{"type":"array","items":{"type":"string"}},"verdict":{"type":"string","enum":["NOT_SUPPORTED","NOT_CHECKED","NORMAL","OBSERVED_ANOMALY","INCONCLUSIVE","ERROR"]},"reason":{"type":"string"},"dnsPathConsistency":{"const":"UNVERIFIED"},"isp":{"type":["object","null"],"additionalProperties":true},"control":{"type":["object","null"],"additionalProperties":true},"comparison":{"type":"string","enum":["SHARED_NXDOMAIN","CONTROL_ONLY_NXDOMAIN","DIFFERENT_RESPONSES","NO_SHARED_NXDOMAIN","NOT_CHECKED"],"description":"Control-only DNS never implies ISP DNS coverage. Shared NXDOMAIN requires different resolver addresses and consistent A/AAAA NXDOMAIN without contradictory answers."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}},"Network":{"type":"object","required":["id","code","name","type"],"properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["RESIDENTIAL","MOBILE"]},"allowedAsns":{"type":"array","items":{"type":"integer"}}}},"CreateMonitor":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Full HTTP/HTTPS URL, including any path and query string. No embedded credentials."},"label":{"type":"string","maxLength":200},"networkIds":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string"}},"allNetworks":{"type":"boolean","const":true},"expectedStatusCodes":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"integer","minimum":400,"maximum":599},"default":[],"description":"Additional acceptable codes; 200–399 remain accepted. Example: [404] for tracking domains."}},"oneOf":[{"required":["networkIds"],"not":{"required":["allNetworks"]}},{"required":["allNetworks"],"not":{"required":["networkIds"]}}]},"Monitor":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri","description":"Full HTTP/HTTPS URL, including any path and query string. No embedded credentials."},"label":{"type":"string","maxLength":200},"networkIds":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string"}},"allNetworks":{"type":"boolean","const":true},"expectedStatusCodes":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"type":"integer","minimum":400,"maximum":599},"default":[],"description":"Additional acceptable codes; 200–399 remain accepted. Example: [404] for tracking domains."},"networks":{"type":"array","items":{"type":"object","properties":{"network":{"$ref":"#/components/schemas/Network"}}}},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}},"Check":{"type":"object","properties":{"measurementSource":{"type":["string","null"],"enum":["REAL_PROXY","MOCK",null],"description":"Null for historical records. Production customer checks require REAL_PROXY."},"measurementEngineVersion":{"type":"string","description":"legacy means exit identity was not independently verified. New checks use 2.1 (warning rules 2 and bounded document capture)."},"contentRulesVersion":{"type":["string","null"]},"measurementHealth":{"type":["string","null"],"enum":["VALID","INVALID_PROXY","ASN_MISMATCH","NETWORK_UNAVAILABLE","CONFIGURATION_ERROR","INTERNAL_ERROR","INCONCLUSIVE",null]},"assessment":{"type":["string","null"],"enum":["NOT_CHECKED","NO_ANOMALY_OBSERVED","INTERMITTENT","SUSPECTED_NETWORK_SPECIFIC_FAILURE","POSSIBLE_BLOCK_PAGE","INCONCLUSIVE","GENERAL_SITE_FAILURE","GENERAL_DNS_FAILURE","MEASUREMENT_INVALID","WEBSITE_HTTP_ERROR","DNS_ANOMALY_OBSERVED",null],"description":"Observed behavior on measured exits. GENERAL_DNS_FAILURE requires explicit control NXDOMAIN plus backend ENOTFOUND on stable ASN-associated paths; it is a nonbillable DNS diagnosis with inconclusive browser health, not an ISP verdict. Warning-page evidence takes precedence over mixed success/failure. Neither success nor failure establishes behavior for every subscriber or intentional ISP filtering."},"confidence":{"type":["string","null"],"enum":["LOW","MEDIUM","HIGH",null]},"confidenceReason":{"type":["string","null"]},"billable":{"type":["boolean","null"],"description":"One credit only for a valid usable measurement; invalid/inconclusive measurements receive an atomic refund. Internal retries cost no extra credit."},"evidence":{"type":["object","null"],"additionalProperties":true,"properties":{"proxyVerified":{"type":"boolean"},"attemptCount":{"type":"integer"},"independentExitCount":{"type":"integer"},"browser":{"type":["object","null"],"additionalProperties":true},"content":{"type":["object","null"],"additionalProperties":true},"dns":{"$ref":"#/components/schemas/DnsObservation"},"neutral":{"type":["object","null"],"additionalProperties":true},"limitation":{"type":"string"}}},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CheckAttempt"},"description":"Every attempt in order, including infrastructure failures and rejected ASN mismatches. Screenshots belong to individual attempts."},"id":{"type":"string"},"monitorId":{"type":"string"},"networkId":{"type":"string"},"checkedUrl":{"type":["string","null"],"description":"URL at check time, preserved if the monitor URL is later edited. Null for legacy results."},"status":{"type":"string","enum":["ONLINE","ISSUE","OFFLINE","UNKNOWN"],"description":"ONLINE means accepted HTTP response. An expected 404 can be ONLINE. Compatibility field only. Inspect measurementHealth, assessment and attempts first. Invalid measurements use UNKNOWN; legacy measurements are unverified."},"httpStatus":{"type":["integer","null"]},"reachable":{"type":["boolean","null"],"description":"Whether an HTTP response was received; null for legacy results."},"latencyMs":{"type":["integer","null"]},"screenshotUrl":{"type":["string","null"]},"errorMessage":{"type":["string","null"]},"dnsCheckResult":{"type":["string","null"]},"checkedAt":{"type":"string","format":"date-time"}}}}}}