{"openapi":"3.1.0","info":{"title":"Enterno.io API v4","description":"API v4 — unified REST surface covering core tools (check, DNS, SSL, IP, ping, health), monitor CRUD, batch async checker, status pages, webhook subscriptions, delivery event history, and the verified SEO Guard CI verdict and check/deployment actions.\n\nChanges vs v3:\n- Webhook subscription CRUD via API (no UI required)\n- Delivery event history with filtering (/events)\n- `X-Idempotency-Key` header support on POSTs (replayed from a 24-hour cache; on POST /monitors/import the key is also the import's durable `idempotency_key`: 8–128 characters of `[A-Za-z0-9._:-]`, any other shape is refused with 400, kept 90 days)\n- `api_version: \"4.0\"` in all responses\n\nMigration from v1/v2/v3: see /docs/api-v4-migration.md — v1 and v2 are sunset 2026-10-01.\n\n**Implementation status** (updated 2026-10-24): the paths below are served by native v4 handlers or the tool bridge. For SEO Guard this document describes GET verdict and POST check/deployments; GitLab actions remain outside this specification. v3 remains frozen for clients that still target it; envelopes are identical except for `meta.api_version` value (\"3.0\" vs \"4.0\").","version":"4.1.0","contact":{"name":"Enterno.io","url":"https://enterno.io"}},"servers":[{"url":"https://enterno.io/api/v4","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Webhooks","description":"Manage webhook subscriptions for event notifications."},{"name":"Events","description":"Webhook delivery history and diagnostics."},{"name":"Check","description":"HTTP header checking"},{"name":"DNS","description":"DNS record lookups"},{"name":"SSL","description":"SSL/TLS certificate checks"},{"name":"Ping","description":"Ping, port check, traceroute"},{"name":"IP","description":"IP geolocation"},{"name":"Health","description":"Website health scoring"},{"name":"Monitors","description":"Uptime monitoring CRUD"},{"name":"Status","description":"Public status pages"},{"name":"Batch","description":"Submit and poll batch URL checks for multiple domains at once."},{"name":"Audit","description":"Signed audit export (compliance)."},{"name":"SEO Guard","description":"CI verdict, immediate checks, and deployment markers for SEO & Release Guard."}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Get your API key at https://enterno.io/dashboard"}},"schemas":{"Meta4":{"type":"object","properties":{"request_id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"duration_ms":{"type":"integer","example":8},"cached":{"type":"boolean","example":false},"api_version":{"type":"string","example":"4.0"}}},"ErrorResponse4":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{}}}},"meta":{"$ref":"#/components/schemas/Meta4"}}},"SeoGuardRegression":{"type":"object","required":["rule","severity","url"],"properties":{"rule":{"type":"string"},"severity":{"type":"string"},"url":{"type":"string"}}},"SeoGuardPrevious":{"type":["object","null"],"description":"The last completed scan, for diagnostics only. null when no scan has finished.","required":["verdict","exit_code","reason","scan_id","checked_at","pages","unreachable","critical","regressions","top_regressions"],"properties":{"verdict":{"type":"string","description":"Usually PASS, WARN, BLOCK, or ERROR; unrecognised stored values use exit_code 4."},"exit_code":{"type":"integer","enum":[0,2,3,4]},"reason":{"type":"string"},"scan_id":{"type":"integer"},"checked_at":{"type":"string"},"pages":{"type":"integer"},"unreachable":{"type":"integer"},"critical":{"type":"integer"},"regressions":{"type":"integer"},"top_regressions":{"type":"array","items":{"$ref":"#/components/schemas/SeoGuardRegression"}}}},"SeoGuardVerdictPending":{"type":"object","required":["domain","verdict","exit_code","pending","reason","scan_id","checked_at","pages","unreachable","critical","regressions","url","previous"],"properties":{"domain":{"type":"string"},"verdict":{"type":"string","const":"ERROR"},"exit_code":{"type":"integer","const":4},"pending":{"type":"boolean","const":true},"reason":{"type":"string","const":"check_in_flight"},"scan_id":{"type":"null"},"checked_at":{"type":"null"},"pages":{"type":"integer","const":0},"unreachable":{"type":"integer","const":0},"critical":{"type":"integer","const":0},"regressions":{"type":"integer","const":0},"url":{"type":"string","format":"uri"},"previous":{"$ref":"#/components/schemas/SeoGuardPrevious"}}},"SeoGuardVerdictComplete":{"type":"object","required":["domain","verdict","exit_code","pending","reason","scan_id","checked_at","pages","unreachable","critical","regressions","url"],"properties":{"domain":{"type":"string"},"verdict":{"type":"string","description":"Usually PASS, WARN, BLOCK, or ERROR; unrecognised stored values use exit_code 4."},"exit_code":{"type":"integer","enum":[0,2,3,4]},"pending":{"type":"boolean","const":false},"reason":{"type":"string"},"scan_id":{"type":["integer","null"]},"checked_at":{"type":["string","null"]},"pages":{"type":"integer"},"unreachable":{"type":"integer"},"critical":{"type":"integer"},"regressions":{"type":"integer"},"url":{"type":"string","format":"uri"},"top_regressions":{"type":"array","description":"Present when a completed scan exists.","items":{"$ref":"#/components/schemas/SeoGuardRegression"}}}},"WebhookSubscription":{"type":"object","properties":{"id":{"type":"integer","example":42},"name":{"type":"string","example":"My Monitoring Webhook"},"url":{"type":["string","null"],"format":"uri","example":"https://myapp.com/hooks/enterno","description":"null when the stored value cannot be decrypted — reinstall the webhook."},"secret":{"type":"string","example":"****abcd","description":"Masked. Full value shown only on creation."},"events":{"type":"array","items":{"type":"string"},"example":["monitor.down","monitor.up","ssl.expiring"]},"is_active":{"type":"boolean","example":true},"last_triggered_at":{"type":["string","null"],"format":"date-time"},"last_status_code":{"type":["integer","null"],"example":200},"fail_count":{"type":"integer","example":0},"created_at":{"type":"string","format":"date-time"}}},"WebhookEvent":{"type":"object","properties":{"id":{"type":"integer"},"webhook_id":{"type":"integer"},"webhook_name":{"type":["string","null"]},"webhook_url":{"type":["string","null"]},"event_type":{"type":"string","example":"monitor.down"},"http_code":{"type":"integer","example":200},"attempt":{"type":"integer","example":1},"max_attempts":{"type":"integer","example":5},"status":{"type":"string","enum":["pending","delivered","retrying","failed","dead","skipped"]},"error_message":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"delivered_at":{"type":["string","null"],"format":"date-time"},"next_retry_at":{"type":["string","null"],"format":"date-time"},"payload_schema":{"description":"Structure of the JSON body delivered to your webhook URL","oneOf":[{"$ref":"#/components/schemas/MonitorDownPayload"},{"$ref":"#/components/schemas/MonitorUpPayload"},{"$ref":"#/components/schemas/MonitorPausedPayload"},{"$ref":"#/components/schemas/CtCertificateIssuedPayload"}]}}},"MonitorObject":{"type":"object","description":"Monitor identification and configuration included in event payloads","properties":{"id":{"type":"integer","example":42},"url":{"type":"string","example":"https://example.com"},"type":{"type":"string","enum":["http","ssl","ping","dns","port","domain"],"example":"http"},"tags":{"type":"array","description":"Up to 10 tags, each up to 30 chars; lower-cased and deduplicated on write","items":{"type":"string"},"example":["prod","client:acme"]},"note":{"type":"string","description":"Private note up to 500 chars; never shown on public status pages","example":"Call the on-call engineer first, then #ops in their Slack"},"check_regions":{"type":"array","description":"Regions from which the monitor performs checks","items":{"type":"string","enum":["ru-msk","eu-de","us-east","ap-sg","eu-nl"]},"example":["ru-msk","eu-de"]},"port":{"type":["integer","null"],"example":443}}},"RegionalResult":{"type":"object","description":"Result of a single-region check","properties":{"region":{"type":"string","example":"eu-de"},"status":{"type":"string","enum":["up","down","degraded","unknown"]},"response_time":{"type":["integer","null"],"description":"Response time in ms"},"error":{"type":["string","null"]}}},"MonitorDownPayload":{"type":"object","description":"Payload delivered to webhook URL when a monitor goes down","properties":{"event":{"type":"string","enum":["monitor.down"]},"monitor":{"$ref":"#/components/schemas/MonitorObject"},"incident_id":{"type":"integer","example":17},"error":{"type":["string","null"],"example":"Connection timed out"},"regional_results":{"type":["array","null"],"items":{"$ref":"#/components/schemas/RegionalResult"}},"timestamp":{"type":"string","format":"date-time"}}},"MonitorUpPayload":{"type":"object","description":"Payload delivered to webhook URL when a monitor recovers","properties":{"event":{"type":"string","enum":["monitor.up"]},"monitor":{"$ref":"#/components/schemas/MonitorObject"},"incident_id":{"type":"integer","example":17},"recovered_after":{"type":"string","example":"5m 30s"},"regional_results":{"type":["array","null"],"items":{"$ref":"#/components/schemas/RegionalResult"}},"timestamp":{"type":"string","format":"date-time"}}},"MonitorPausedPayload":{"type":"object","description":"Payload delivered to webhook URL when the system pauses a monitor. reason dead_target: its checks have failed for weeks (dead-target ladder: slowed after 7 days down, paused after 30 days and at least 7 days after the email warning); switching the monitor back on restarts it. reason plan: its type is available on paid plans only (udp) and its payer (the team owner for a team monitor) is no longer on one; its settings are kept, and it can be switched back on once the payer is on a paid plan. Sent once per pause, to the subscriptions of the monitor's creator.","properties":{"event":{"type":"string","enum":["monitor.paused"]},"monitor":{"type":"object","properties":{"id":{"type":"integer","example":42},"url":{"type":"string","example":"https://example.com"},"type":{"type":"string","example":"http"}}},"reason":{"type":"string","enum":["dead_target","plan"]},"down_since":{"type":["string","null"],"format":"date-time"},"paused_at":{"type":"string","format":"date-time"},"timestamp":{"type":"string","format":"date-time"}}},"CtCertificateIssuedPayload":{"type":"object","description":"Payload delivered to webhook URL when CT Watch (beta) finds a certificate in Certificate Transparency logs that was not there at the previous poll: for a watched domain (kind own) or for a name that looks like it (kind lookalike). One event per certificate; a precertificate and its final certificate are one. The first poll of a domain only records what is there and sends nothing. Look-alike names are defanged (evil[.]com) so a receiver that renders them never turns them into links.","properties":{"event":{"type":"string","enum":["ct.certificate_issued"]},"watch_domain":{"type":"string","description":"The watched registrable domain (A-label form)","example":"example.com"},"kind":{"type":"string","enum":["own","lookalike"]},"names":{"type":"array","description":"DNS names of the certificate (at most 100). Untrusted text from a public CT log: defanged (evil[.]com) for kind lookalike, and for kind own every name that is not under watch_domain","items":{"type":"string"},"example":["example-login[.]com","www[.]example-login[.]com"]},"matched_name":{"type":["string","null"],"description":"The name that looks like the watched domain (defanged); null for kind own","example":"example-login[.]com"},"issuer":{"type":["string","null"],"description":"The issuer's distinguished name as logged — untrusted text, escape it before rendering","example":"C=US, O=Let's Encrypt, CN=R11"},"not_before":{"type":["string","null"],"format":"date-time"},"not_after":{"type":["string","null"],"format":"date-time"},"crtsh_id":{"type":["integer","null"],"description":"The certificate's id at crt.sh: https://crt.sh/?id=<crtsh_id>","example":15234567890},"timestamp":{"type":"string","format":"date-time"}}},"Meta":{"allOf":[{"$ref":"#/components/schemas/Meta4"}]},"ErrorResponse":{"allOf":[{"$ref":"#/components/schemas/ErrorResponse4"}]},"PaginationMeta":{"type":"object","properties":{"total":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"},"pages":{"type":"integer"}}},"CheckResult":{"type":"object","additionalProperties":true,"description":"url, final_url, method, code, http_version, ip, headers[], timing{}, elapsed_ms"},"DnsResult":{"type":"object","additionalProperties":true,"description":"domain, records, dnssec?, elapsed_ms"},"SslResult":{"type":"object","additionalProperties":true,"description":"host, port, certificate, chain, connection, chain_details?, elapsed_ms"},"IpResult":{"type":"object","additionalProperties":true,"description":"ip, country, country_code, region, city, zip, lat, lon, timezone, isp, org, as, elapsed_ms"},"PingResult":{"type":"object","additionalProperties":true,"description":"host, ip, action, plus pings[]+stats{} | ports | hops[], elapsed_ms"},"HealthResult":{"type":"object","additionalProperties":true,"description":"Health Score — the number the /health tool shows. score = round(sum of category scores / 120 * 100); it is not the sum of the category scores.","properties":{"url":{"type":"string"},"final_url":{"type":"string"},"http_code":{"type":"integer"},"score":{"type":"integer","minimum":0,"maximum":100},"grade":{"type":"string","enum":["A+","A","B","C","D","F"]},"methodology_version":{"type":"string","description":"Version of the published Health Score formula (/methodology/health-score), e.g. \"2.2\". Added 2026-10-05.","example":"2.2"},"categories":{"type":"array","description":"In this order: Security Headers (max 30), SSL/TLS (25), Performance (25), Best Practices (20), Cookies (10), CSP (10). Cookies and CSP were added 2026-10-05, after the four existing ones. A category score is its raw points. Clients should match categories by name, not position, and ignore names they do not know.","items":{"type":"object","properties":{"name":{"type":"string"},"score":{"type":"integer"},"max":{"type":"integer"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string","enum":["pass","fail","warning"]},"points":{"type":"integer"},"max":{"type":"integer"},"value":{"type":["string","null"]},"detail":{"type":["string","null"]}}}}}}},"recommendations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["critical","warning"]},"check":{"type":"string"}}}},"elapsed_ms":{"type":"integer"}}},"Monitor":{"type":"object","additionalProperties":true,"description":"id, url, check_type, port (integer for TCP port monitors; null otherwise), interval_minutes, last_status, uptime, tags[], group_name, note, space_id (client space, 0 = none), down_since, paused_reason, paused_at, dead_target, name, keyword, keyword_mode, request_method, request_header_names, request_body_set, request_body?, assert_body, assert_status, dns_watch_types, cache_bust, recent_checks?, regional_results?","properties":{"group_name":{"type":["string","null"],"description":"The monitor's group; null when it has none. Set with group_name on POST/PUT (Business plan and above) or by «Set group» in the cabinet; filter the list with ?group=.","example":"prod-eu"},"down_since":{"type":["string","null"],"description":"When the current run of failed checks began (server time, Y-m-d H:i:s); null while the monitor passes. Unmeasured checks do not move it.","example":"2026-09-20 14:05:00"},"paused_reason":{"type":["string","null"],"description":"Why the system switched the monitor off; null while it is on or when the owner switched it off. dead_target — its checks failed for weeks. plan — a udp monitor whose payer is no longer on a paid plan (settings kept; switching it on again needs a paid plan). udp_setup — a udp monitor created by CSV import without udp_payload; set it, then switch the monitor on.","example":"dead_target"},"paused_at":{"type":["string","null"],"description":"When the system switched it off (server time); null whenever paused_reason is null.","example":"2026-10-27 09:50:12"},"dead_target":{"type":["object","null"],"description":"The dead-target ladder for this monitor, or null when it does not apply. slowed: down for 7+ days and checked no more often than checked_every_minutes until a check passes; pause_on is the earliest date it may be paused. paused: switched off by the ladder.","properties":{"stage":{"type":"string","enum":["slowed","paused"]},"days_down":{"type":"integer","example":12},"checked_every_minutes":{"type":["integer","null"],"example":60},"pause_on":{"type":["string","null"],"example":"2026-11-19 09:50:00"}}},"check_type":{"type":"string","enum":["http","ssl","ping","dns","domain","heartbeat","port","api","dns_change","udp","rum","visual"],"description":"REST check type. Not the same field as type in webhook payloads (MonitorObject). rum and visual monitors are created in the cabinet only. udp monitors need a paid plan of whoever pays for the monitor (403 plan_required), and each packet sent counts as one check in the daily quota."},"port":{"type":["integer","null"],"description":"port and udp monitors: the TCP or UDP port; null for other types.","example":53},"name":{"type":["string","null"],"example":"Checkout API"},"keyword":{"type":["string","null"],"description":"http: text the body must (or must not) contain. api monitors do not check a keyword (an older one may remain until cleared)."},"keyword_mode":{"type":"string","enum":["contains","not_contains"]},"request_method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"description":"api: method of the check request."},"request_header_names":{"type":"array","items":{"type":"string"},"description":"Names of the headers sent with each check. Values are write-only and never returned.","example":["Authorization","Accept"]},"request_body_set":{"type":"boolean","description":"Whether an api request body is stored."},"request_body":{"type":["string","null"],"description":"api request body. Present only in a single-monitor GET, for a caller who may edit the monitor with a key holding the monitors scope; never in the list or in create/update responses."},"assert_body":{"type":["string","null"],"description":"api: text the response body must contain."},"assert_status":{"type":["integer","null"],"description":"api: expected status, overriding expected_code."},"dns_watch_types":{"type":["array","null"],"items":{"type":"string"},"description":"dns_change: record types watched; null for other types.","example":["A","MX","NS"]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["dns_hosts_not_public"]},"message":{"type":"string"}}},"description":"Only in the answer to POST/PUT, and only when there is a note: the write succeeded with it. dns_hosts_not_public — a dns_change monitor on a name without A/AAAA was admitted by its NS/MX hosts, some of which have no public address (counted, never named; they are not checked or contacted)."},"udp_payload_set":{"type":["boolean","null"],"description":"udp: whether a payload is stored; null for other types."},"udp_payload":{"type":["string","null"],"description":"udp payload as stored (hex lowercase when udp_format is hex). Present only in a single-monitor GET, for a caller who may edit the monitor with a key holding the monitors scope; never in the list or in create/update responses."},"request_settings_unreadable":{"type":"array","items":{"type":"string","enum":["request_headers","request_body","udp_payload"]},"description":"Present only when a stored request secret does not decrypt — the encryption key is missing or was changed without keeping the old one (R28: request_headers, request_body and udp_payload are stored encrypted). Names the fields, never a value. Such a monitor is not checked (configuration error) until the key is restored or the fields are sent again. request_header_names is then empty and request_body_set / udp_payload_set are true."},"udp_format":{"type":["string","null"],"enum":["text","hex",null],"description":"udp: text or hex; null for other types."},"udp_expect":{"type":["string","null"],"description":"udp: bytes a reply must contain, in udp_format; null accepts any reply, and is null for other types."},"udp_packets":{"type":["integer","null"],"description":"udp: packets per check; null for other types."},"udp_timeout_ms":{"type":["integer","null"],"description":"udp: reply timeout per packet, ms; null for other types."},"udp_max_loss_pct":{"type":["integer","null"],"description":"udp: allowed share of packets without a valid reply; null for other types."},"cache_bust":{"type":["boolean","null"],"description":"http and api: whether every check adds enterno_nocache=<random> to the request URL (request freshness); null for other types. The url field is always the stored address, without the parameter."},"assert_body_case":{"type":["boolean","null"],"description":"api: whether assert_body must match letter case; null for other types."},"request_timeout":{"type":["integer","null"],"description":"http and api: seconds a check's request may run, redirects included (1-30, default 15); null for other types."},"follow_redirects":{"type":["boolean","null"],"description":"http and api: whether a check follows redirects — the type's rule when none was chosen (an http monitor follows unless it has request headers, an api monitor does not); null for other types."},"heartbeat_token":{"type":["string","null"],"description":"Present only for a caller who may edit the monitor with a key holding the monitors scope; a monitors:read key does not receive it."},"heartbeat_grace_minutes":{"type":["integer","null"],"minimum":0,"maximum":1440,"description":"heartbeat: minutes a ping may be late before the monitor goes down (0 = none); null for other types."}}},"StatusPage":{"type":"object","additionalProperties":true,"description":"title, slug, overall_status, stale (boolean; after 15 minutes overall_status and monitors[].status are unknown), monitors_total, monitors_down (null when stale), monitors[], recent_incidents[], updated_at (UTC projection build time, not response time)"},"AiVisibilityPlatformMetric":{"type":"object","description":"Counts and rates of one AI platform in one run. Rates are percent (0–100, one decimal) and null when not measured — never 0 for «not measured». A failed call counts in `total` and `failed` and in no denominator.","properties":{"cites":{"type":"boolean","description":"The platform returns cited sources at all (provider registry flag). False → citation_rate and source_visibility are null."},"total":{"type":"integer","description":"Probes sent"},"failed":{"type":"integer","description":"Probes that returned an error"},"ok":{"type":"integer","description":"Answered probes — the denominator of mention, recommendation and citation rate"},"mentions":{"type":"integer","description":"Answers naming the brand"},"recommendations":{"type":"integer","description":"Answers recommending the brand (or ranking it top)"},"cited_own":{"type":"integer","description":"Answers citing the project's own domain"},"citations_total":{"type":"integer","description":"All citations in the answers — the denominator of source_visibility"},"citations_own":{"type":"integer","description":"Citations pointing to the project's own domain"},"cited_own_inline":{"type":"integer","description":"Of the answers citing the own domain, those where the link backs a sentence of the answer rather than standing only in the list of sources"},"cited_own_placed":{"type":"integer","description":"Answers citing the own domain whose placement the engine marked — the denominator of cited_own_inline; 0 when the engine marks none"},"mention_rate":{"type":["number","null"],"description":"mentions / ok × 100; null when nothing was answered"},"mention_ci":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Where mention_rate would land on a repeat measurement: 95% Wilson interval [low, high] in percent; null when nothing was answered or the run was stored before the interval existed"},"recommendation_rate":{"type":["number","null"],"description":"recommendations / ok × 100; null when nothing was answered"},"citation_rate":{"type":["number","null"],"description":"cited_own / ok × 100; null on a platform that returns no citations"},"source_visibility":{"type":["number","null"],"description":"citations_own / citations_total × 100; null when the platform cited nothing or returns no citations"}}},"AiVisibilityPlatformTotals":{"type":"object","description":"The run across platforms. citation_rate and source_visibility count only platforms that return citations; citing_ok is their answered count.","properties":{"cites":{"type":"boolean","description":"The platform returns cited sources at all (provider registry flag). False → citation_rate and source_visibility are null."},"total":{"type":"integer","description":"Probes sent"},"failed":{"type":"integer","description":"Probes that returned an error"},"ok":{"type":"integer","description":"Answered probes — the denominator of mention, recommendation and citation rate"},"mentions":{"type":"integer","description":"Answers naming the brand"},"recommendations":{"type":"integer","description":"Answers recommending the brand (or ranking it top)"},"cited_own":{"type":"integer","description":"Answers citing the project's own domain"},"citations_total":{"type":"integer","description":"All citations in the answers — the denominator of source_visibility"},"citations_own":{"type":"integer","description":"Citations pointing to the project's own domain"},"cited_own_inline":{"type":"integer","description":"Of the answers citing the own domain, those where the link backs a sentence of the answer rather than standing only in the list of sources"},"cited_own_placed":{"type":"integer","description":"Answers citing the own domain whose placement the engine marked — the denominator of cited_own_inline; 0 when the engine marks none"},"mention_rate":{"type":["number","null"],"description":"mentions / ok × 100; null when nothing was answered"},"mention_ci":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Where mention_rate would land on a repeat measurement: 95% Wilson interval [low, high] in percent; null when nothing was answered or the run was stored before the interval existed"},"recommendation_rate":{"type":["number","null"],"description":"recommendations / ok × 100; null when nothing was answered"},"citation_rate":{"type":["number","null"],"description":"cited_own / ok × 100; null on a platform that returns no citations"},"source_visibility":{"type":["number","null"],"description":"citations_own / citations_total × 100; null when the platform cited nothing or returns no citations"},"citing_ok":{"type":"integer","description":"Answered probes on citation-capable platforms — the denominator of the run's citation_rate"}}},"AiVisibilityPlatformMetrics":{"type":["object","null"],"description":"Mention Rate, Citation Rate and Source Visibility per AI platform. Stored when the run is finalised; runs before that are counted on request by the same function. null for an unfinished run.","properties":{"version":{"type":"integer"},"providers":{"type":"object","description":"Keyed by provider id (openai, perplexity, google_ai, yandex_gpt)","additionalProperties":{"$ref":"#/components/schemas/AiVisibilityPlatformMetric"}},"totals":{"$ref":"#/components/schemas/AiVisibilityPlatformTotals"}}},"SecurityHeadersError":{"type":"object","required":["status","error"],"properties":{"status":{"type":"string","const":"error"},"error":{"type":"string"},"rate_limit_exceeded":{"type":"boolean"},"retry_after":{"type":"integer"}}},"SeoGuardCheckAccepted":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["queued","reused"],"properties":{"queued":{"type":"boolean","description":"True when a queue job was placed or recovered by this request."},"reused":{"type":"boolean","description":"True when an existing scan row was reused."}}},"meta":{"$ref":"#/components/schemas/Meta4"}}},"SeoGuardDeploymentAccepted":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["version","check_queued"],"properties":{"version":{"type":"string"},"check_queued":{"type":"boolean","const":true}}},"meta":{"$ref":"#/components/schemas/Meta4"}}},"SeoGuardCheckQueueUnavailable":{"type":"object","required":["error","meta"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","const":"queue_unavailable"},"message":{"type":"string"}}},"meta":{"type":"object","required":["request_id","duration_ms","api_version"],"properties":{"request_id":{"type":"string"},"duration_ms":{"type":"integer"},"api_version":{"type":"string","const":"4.0"}}}}},"SeoGuardDeploymentQueueUnavailable":{"type":"object","required":["error","meta"],"properties":{"error":{"type":"object","required":["code","message","details"],"properties":{"code":{"type":"string","const":"queue_unavailable"},"message":{"type":"string"},"details":{"type":"array","minItems":1,"items":{"type":"object","required":["deployment_recorded","version"],"properties":{"deployment_recorded":{"type":"boolean","const":true},"version":{"type":"string"}}}}}},"meta":{"type":"object","required":["request_id","duration_ms","api_version"],"properties":{"request_id":{"type":"string"},"duration_ms":{"type":"integer"},"api_version":{"type":"string","const":"4.0"}}}}},"SeoGuardIdempotencyConflict":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["idempotency_key_conflict","idempotency_in_progress"]},"message":{"type":"string"}}}}}},"headers":{"X-Request-Id":{"description":"Unique request id (also on errors).","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the window resets.","schema":{"type":"integer"}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"Forbidden":{"description":"Key lacks the required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"RateLimited":{"description":"Rate limit exceeded — see X-RateLimit-* + Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}}}},"paths":{"/ai-check":{"get":{"operationId":"aiCheck","summary":"AI readiness","description":"AI readiness. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"AI readiness","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/ai-visibility":{"get":{"summary":"AI Visibility — portfolio, project detail and sub-resources","description":"Without `id`: paginated portfolio of viewable projects (own + team-shared). With `id`: project + latest finished run (score, Share of AI Voice, explainable breakdown, per-provider status, and `platform_metrics` — Mention Rate, Citation Rate and Source Visibility per platform with the counts behind them; the run also records the project's `country` and `language` at the time it was created). `resource` selects sub-resources: `runs`, `queries`, `responses` (raw model answers with exact model + search_mode provenance; `with_raw=1` includes full text), `sources`, `opportunities` (missed prompts + sources-you-are-missing). Team roles apply: the viewer seat reads; budgets always follow the project owner's plan.","operationId":"aiVisibility","tags":["ai-visibility"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"query","schema":{"type":"integer"},"description":"Project id. Omit for the portfolio list."},{"name":"resource","in":"query","schema":{"type":"string","enum":["runs","queries","responses","sources","opportunities"]}},{"name":"run_id","in":"query","schema":{"type":"integer"},"description":"responses only"},{"name":"query_id","in":"query","schema":{"type":"integer"},"description":"responses only"},{"name":"with_raw","in":"query","schema":{"type":"integer","enum":[0,1]},"description":"responses only — include full raw model answers"},{"name":"page","in":"query","schema":{"type":"integer","default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","default":25,"maximum":100}}],"responses":{"200":{"description":"Project data in the v4 envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"The shape follows `id` and `resource`. With `id` and no `resource`: {project, latest_run}. With `resource=runs`: a list of runs carrying the same run fields.","properties":{"latest_run":{"type":["object","null"],"properties":{"country":{"type":["string","null"],"description":"Project country when the run was created; null for runs before this was recorded"},"language":{"type":["string","null"],"enum":["ru","en",null],"description":"Project language when the run was created; null for runs before this was recorded"},"platform_metrics":{"$ref":"#/components/schemas/AiVisibilityPlatformMetrics"}}}}},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"401":{"description":"Missing/invalid API key"},"403":{"description":"Key lacks the ai_visibility scope, or read-only team role on a write"},"404":{"description":"Project not found or not visible to this account"}}},"post":{"summary":"Queue a manual AI Visibility scan","description":"Queues a manual scan of the project (edit role required: owner/admin/member). Budgets — monthly AI-check cap and manual-run cap — follow the project OWNER's plan. Scans execute in batches every ~5 minutes; poll `resource=runs`. Returns 200 with `reused=true` when an unfinished run already exists (idempotent).","operationId":"aiVisibilityScan","tags":["ai-visibility"],"security":[{"ApiKeyAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"action":{"type":"string","enum":["scan"],"default":"scan"}}}}}},"responses":{"202":{"description":"Scan queued"},"200":{"description":"An unfinished run already exists (reused)"},"402":{"description":"Owner's monthly budget or manual-run cap exhausted"},"409":{"description":"Project setup not finished / no enabled queries"},"503":{"description":"No AI providers currently configured"}}}},"/alert-assignees":{"get":{"operationId":"listAlertAssignees","summary":"List alert assignees","tags":["Monitors"],"description":"Alert assignees of one team monitor or one team client space (agency cabinet). A monitor's routes take precedence over its space's, per event class; with neither, alerts go to the owner only. A monitor or space the caller may not see is 404. Answers 403 `disabled` while the feature is switched off. Scope monitors or monitors:read.","parameters":[{"name":"monitor_id","in":"query","schema":{"type":"integer"},"description":"Routes of one team monitor (exactly one of monitor_id and space_id)"},{"name":"space_id","in":"query","schema":{"type":"integer"},"description":"Routes of one team client space"}],"responses":{"200":{"description":"Routes","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"assignee_user_id":{"type":"integer"},"assignee_name":{"type":"string"},"event_class":{"type":"string","enum":["availability","ssl","domain","all"]},"channels":{"type":"array","items":{"type":"string","enum":["email","telegram"]}},"exclude_owner":{"type":"boolean","description":"The owner is not sent the alert while an assignee takes it; when no assignee does, the owner still gets it"},"eligible":{"type":"boolean","description":"false once the assignee lost their seat (left the team, became an auditor): the route stays and delivers nothing"}}}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"400":{"description":"Neither or both of monitor_id and space_id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Monitor or space not found (or not the caller's)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setAlertAssignee","summary":"Set an alert assignee","tags":["Monitors"],"description":"Route an event class of a team monitor, or of every monitor in a team client space, to a member of that team as well. The assignee must be an accepted member who may see the monitor (never an auditor); membership is checked again when each alert is sent. No address is accepted: the alert goes to the email and Telegram of the assignee's own profile, under their own notification preferences. Setting the same person and class again updates the channels. exclude_owner=true may be set only by the owner it leaves out — the monitor owner on a monitor route, the team owner on a space route (403 forbidden_option otherwise); it stops applying once that owner changes. Business plan of the team owner. Scope monitors.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["assignee_user_id"],"properties":{"monitor_id":{"type":"integer","description":"Exactly one of monitor_id and space_id"},"space_id":{"type":"integer"},"assignee_user_id":{"type":"integer"},"event_class":{"type":"string","enum":["availability","ssl","domain","all"],"default":"all"},"channels":{"type":"array","items":{"type":"string","enum":["email","telegram"]},"default":["email"]},"exclude_owner":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"Route set","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid event_class or channels","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The team owner's plan does not include the agency cabinet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Monitor, space or assignee not found (or not the caller's)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"A personal monitor or space has no team to route to","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"operationId":"deleteAlertAssignee","summary":"Remove an alert assignee","tags":["Monitors"],"description":"Remove one route by id. A route on a monitor or space the caller may not change is 404. Scope monitors.","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Route not found (or not the caller's)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/asn":{"get":{"operationId":"asn","summary":"ASN and network owner","description":"ASN and network owner. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"ASN and network owner","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"ip\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/audit-export":{"get":{"operationId":"auditExport","summary":"Signed audit export","tags":["Audit"],"description":"Integrity-signed (HMAC-SHA256) compliance snapshot of a monitor, a shared check, or the whole tenant. The receiver re-canonicalises `data` and re-HMACs `${ts}.${canonical}` against the shared secret (reference verifier: cli/verify-report.php). A monitor export carries `method` (`time` or `checks`) beside `uptime_30d_pct`, with `observed_seconds_30d` and `down_seconds_30d` (null by checks); an envelope without `method` was signed before 2026-11-10 and counted by checks. Scope: check. Team viewer role is excluded by ownership/RBAC. Captain-tier feature.","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["monitor","check","tenant"]},"description":"What to export."},{"name":"id","in":"query","required":false,"schema":{"type":"string"},"description":"Required for type=monitor (positive integer monitor_id) and type=check (shared-result id [A-Za-z0-9]{6,32}). Not used for type=tenant."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"minimum":1},"description":"Pagination — type=tenant only."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200},"description":"Page size — type=tenant only."}],"responses":{"200":{"description":"Signed audit envelope.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"data":{"type":"object","description":"Canonical audit payload (monitor+30d incidents+uptime, one check, or a paginated tenant bundle)."},"sig":{"type":"object","properties":{"v":{"type":"integer","example":1},"alg":{"type":"string","example":"HMAC-SHA256"},"kid":{"type":"string","example":"e1"},"ts":{"type":"integer","description":"Unix signing time."},"value":{"type":"string","description":"Hex HMAC of `${ts}.${canonical(data)}`."}}}}},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"400":{"description":"invalid_type | missing_id | invalid_id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"500":{"description":"signing_failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}}}}},"/batch":{"post":{"summary":"Submit Batch Check","description":"Submit multiple URLs for parallel checking. Returns a job_id to poll for results.\n\nPlan limits:\n- free: 5 URLs\n- starter: 20 URLs\n- pro: 50 URLs\n- business: 100 URLs","operationId":"batchSubmit","tags":["Batch"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","items":{"type":"string","format":"uri"},"example":["https://example.com","https://google.com"],"description":"List of URLs to check (plan-limited)"},"type":{"type":"string","enum":["check","ssl","dns","ping"],"default":"check","description":"Type of check to perform on each URL"}}}}}},"responses":{"202":{"description":"Batch job accepted","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"job_id":{"type":"string","example":"a1b2c3d4e5f6"},"status":{"type":"string","enum":["pending"],"example":"pending"},"type":{"type":"string","example":"check"},"total":{"type":"integer","example":5},"poll_url":{"type":"string","example":"/api/v4/batch?job_id=a1b2c3d4e5f6"},"invalid_urls":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"error":{"type":"string"}}},"description":"URLs that failed validation (if any)"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Batch limit exceeded for plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Queue service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"Poll Batch Job Status","description":"Check the status and retrieve results of a submitted batch job. Poll until status is `completed` or `failed`.","operationId":"batchStatus","tags":["Batch"],"parameters":[{"name":"job_id","in":"query","required":true,"schema":{"type":"string"},"description":"Job ID returned by POST /batch","example":"a1b2c3d4e5f6"}],"responses":{"200":{"description":"Job status","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string","enum":["pending","processing","completed","failed","dead"],"example":"completed"},"type":{"type":"string","example":"check"},"progress":{"type":"integer","minimum":0,"maximum":100,"example":100},"total":{"type":"integer","example":5},"results":{"type":"array","description":"Present when status=completed","items":{"type":"object","properties":{"url":{"type":"string"},"http_code":{"type":"integer"},"elapsed_ms":{"type":"integer"},"error":{"type":["string","null"]}}}},"error":{"type":"string","description":"Present when status=failed|dead"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Access denied to this job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found or expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/carbon":{"get":{"operationId":"carbon","summary":"Carbon footprint estimate","description":"Carbon footprint estimate. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Carbon footprint estimate","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/check":{"get":{"operationId":"checkGet","summary":"HTTP header check","description":"Fetch HTTP response headers for a URL with detailed timing breakdown.","tags":["Check"],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"},"description":"URL to check"},{"name":"method","in":"query","schema":{"type":"string","enum":["GET","HEAD","POST"],"default":"GET"}},{"name":"follow","in":"query","schema":{"type":"string","enum":["0","1"],"default":"1"},"description":"Follow redirects"},{"name":"timeout","in":"query","schema":{"type":"integer","minimum":1,"maximum":30,"default":15}},{"name":"ua","in":"query","schema":{"type":"string"},"description":"Custom User-Agent"}],"responses":{"200":{"description":"Successful check","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CheckResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"checkPost","summary":"HTTP header check (POST)","tags":["Check"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"method":{"type":"string","enum":["GET","HEAD","POST"],"default":"GET"},"follow":{"type":"string","default":"1"},"timeout":{"type":"integer","default":15},"ua":{"type":"string"},"body":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful check","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CheckResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}},"description":""}},"/cms":{"get":{"operationId":"cms","summary":"CMS detection","description":"CMS detection. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"CMS detection","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/cookie":{"get":{"operationId":"cookie","summary":"Cookie flags and trackers","description":"Cookie flags and trackers. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Cookie flags and trackers","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/cors":{"get":{"operationId":"cors","summary":"CORS policy","description":"CORS policy. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"origin","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"CORS policy","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/csp":{"get":{"operationId":"csp","summary":"Content-Security-Policy grade","description":"Content-Security-Policy grade. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Content-Security-Policy grade","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/dkim":{"get":{"operationId":"dkim","summary":"DKIM public key","description":"DKIM public key. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"selector","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"DKIM public key","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/dns":{"get":{"operationId":"dnsLookup","summary":"DNS lookup","description":"Get DNS records for a domain with optional DNSSEC validation.","tags":["DNS"],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"types","in":"query","schema":{"type":"string","default":"A,AAAA,MX,NS,TXT,CNAME,SOA"},"description":"Comma-separated record types"},{"name":"dnssec","in":"query","schema":{"type":"string","enum":["0","1"],"default":"0"},"description":"Check DNSSEC status"}],"responses":{"200":{"description":"DNS records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DnsResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"DNS lookup (POST)","description":"Get DNS records for a domain with optional DNSSEC validation.\n\nSame as GET, but parameters are sent in the request body.","operationId":"dnsLookupPost","tags":["DNS"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"types":{"type":"string","description":"Comma-separated record types","default":"A,AAAA,MX,NS,TXT,CNAME,SOA"},"dnssec":{"type":"string","description":"Check DNSSEC status","enum":["0","1"],"default":"0"}},"required":["domain"]}},"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"types":{"type":"string","description":"Comma-separated record types","default":"A,AAAA,MX,NS,TXT,CNAME,SOA"},"dnssec":{"type":"string","description":"Check DNSSEC status","enum":["0","1"],"default":"0"}},"required":["domain"]}}}},"responses":{"200":{"description":"DNS records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DnsResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/email-check":{"get":{"operationId":"emailCheck","summary":"SPF, DKIM and DMARC","description":"SPF, DKIM and DMARC. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"SPF, DKIM and DMARC","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/email-header":{"get":{"operationId":"emailHeader","summary":"Parse raw email headers","description":"Parse raw email headers. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"headers","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Parse raw email headers","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/events":{"get":{"summary":"List Webhook Delivery Events","description":"Paginated delivery history. Use for debugging failed deliveries.","operationId":"listEvents","tags":["Events"],"parameters":[{"name":"webhook_id","in":"query","schema":{"type":"integer"}},{"name":"event_type","in":"query","schema":{"type":"string"},"example":"monitor.down"},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","delivered","retrying","failed","dead","skipped"]}},{"name":"page","in":"query","schema":{"type":"integer","default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","default":25,"maximum":100}}],"responses":{"200":{"description":"Paginated event list","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"}},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta4"},{"type":"object","properties":{"pagination":{"type":"object","properties":{"total":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"},"pages":{"type":"integer"}}}}}]}}}}}},"401":{"description":"Unauthorized"}}}},"/health":{"get":{"operationId":"healthScore","summary":"Website health score","description":"The Health Score of the /health tool — same engine (src/health-score.php), same number: security headers (30), SSL/TLS (25), performance (25), best practices (20), cookies (10), CSP (10); 120 raw points normalised to a score 0-100 with grade A+..F. methodology_version names the edition of /methodology/health-score. Since 2026-10-05; before, this endpoint computed a four-category copy of the v1.0 formula.","tags":["Health"],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Health score result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/HealthResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"Website health score (POST)","description":"The Health Score of the /health tool — same engine (src/health-score.php), same number: security headers (30), SSL/TLS (25), performance (25), best practices (20), cookies (10), CSP (10); 120 raw points normalised to a score 0-100 with grade A+..F. methodology_version names the edition of /methodology/health-score. Since 2026-10-05; before, this endpoint computed a four-category copy of the v1.0 formula.\n\nSame as GET, but parameters are sent in the request body.","operationId":"healthScorePost","tags":["Health"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}}}},"responses":{"200":{"description":"Health score result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/HealthResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/http-status":{"get":{"operationId":"httpStatus","summary":"Status code and timing","description":"Status code and timing. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Status code and timing","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/ip":{"get":{"operationId":"ipGeolocate","summary":"IP geolocation","description":"Get geographic location, ISP and organization by IP address or domain.","tags":["IP"],"parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"},"description":"IP address or domain"}],"responses":{"200":{"description":"IP geolocation data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/IpResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"IP geolocation (POST)","description":"Get geographic location, ISP and organization by IP address or domain.\n\nSame as GET, but parameters are sent in the request body.","operationId":"ipGeolocatePost","tags":["IP"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"host":{"type":"string","description":"IP address or domain"}},"required":["host"]}},"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string","description":"IP address or domain"}},"required":["host"]}}}},"responses":{"200":{"description":"IP geolocation data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/IpResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/mixed-content":{"get":{"operationId":"mixedContent","summary":"Mixed content on an HTTPS page","description":"Mixed content on an HTTPS page. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Mixed content on an HTTPS page","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/monitors":{"get":{"operationId":"listMonitors","summary":"List monitors","description":"Get a paginated list of the user's monitors. Filter by status, client space or group.","tags":["Monitors"],"parameters":[{"name":"id","in":"query","schema":{"type":"integer"},"description":"Get a specific monitor by ID (includes recent checks)"},{"name":"page","in":"query","schema":{"type":"integer","default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","default":25,"maximum":100}},{"name":"status","in":"query","schema":{"type":"string","enum":["up","down","unknown"]}},{"name":"space_id","in":"query","schema":{"type":"integer","minimum":0},"description":"Only monitors in this client space (agency cabinet); 0 = monitors in no space. A space the key's owner may not see is 404 not_found, the same answer as one that does not exist."},{"name":"group","in":"query","schema":{"type":"string","minLength":1,"maxLength":50},"description":"Only monitors of this group (group_name, exactly as stored)."}],"responses":{"200":{"description":"List of monitors","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Monitor"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"404":{"description":"space_id names a client space that does not exist or that the caller may not see","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"operationId":"createMonitor","summary":"Create a monitor","tags":["Monitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Target to monitor. For http/ssl/api monitors the scheme defaults to https:// and a private, reserved or unresolvable host is refused with invalid_url."},"check_type":{"type":"string","enum":["http","ssl","ping","dns","domain","heartbeat","port","api","dns_change","udp"],"default":"http"},"interval_minutes":{"type":"integer","minimum":1,"maximum":1440,"default":60,"description":"Check interval in minutes, an integer from 1 to 1440; anything else is refused with invalid_parameter. A value below the plan's minimum is raised to it."},"expected_code":{"type":"integer","default":200,"minimum":0,"maximum":599,"description":"Expected HTTP status: 0 (any 2xx/3xx, as the cabinet allows) or an integer from 100 to 599; anything else is refused with invalid_parameter."},"notify_email":{"type":"boolean","default":true,"description":"Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"notify_telegram":{"type":"boolean","default":true,"description":"Telegram alerts for this monitor: to the chat it was added from in the bot and to the owner's linked chat. false stops both. Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"show_on_status_page":{"type":"boolean","default":false,"description":"Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"tags":{"type":"array","description":"Up to 10 tags, each up to 30 chars; lower-cased and deduplicated on write","items":{"type":"string"},"example":["prod","client:acme"]},"note":{"type":"string","description":"Private note up to 500 chars; never shown on public status pages","example":"Call the on-call engineer first, then #ops in their Slack"},"group_name":{"type":["string","null"],"maxLength":50,"description":"The monitor's group, as «Set group» in the cabinet: up to 50 letters (Latin or Cyrillic), digits, spaces, \"_\" and \"-\"; a name with other characters is 400 invalid_parameter. null or \"\" takes the monitor out of its group. Business plan and above: on a lower plan a change is 403 plan_required (details.required_plan, details.your_plan); sending the group the monitor already has is not a change.","example":"prod-eu"},"check_regions":{"type":"array","items":{"type":"string","enum":["ru-msk","eu-de","us-east","ap-sg","eu-nl"]},"description":"Regions to monitor from. Also accepted as a comma-separated string; any other shape is rejected with 400 invalid_parameter. Free: ru-msk only; Pro and above: every listed region — codes outside the plan fall back to ru-msk.","default":["ru-msk"],"example":["ru-msk","eu-de","us-east"]},"port":{"type":"integer","minimum":1,"maximum":65535,"description":"port monitors: TCP port; if omitted or null, 80. udp monitors: UDP port, required. An explicit value must be an integer from 1 to 65535. One monitor per host and type: the port is not part of the uniqueness of (account, url, check_type), so a second udp or port monitor on the same host is 409 monitor_exists.","example":443},"name":{"type":["string","null"],"maxLength":255,"description":"Display name, any check type. Control characters become spaces; longer than 255 characters is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"Checkout API"},"keyword":{"type":["string","null"],"maxLength":500,"description":"http monitors: text the response body must contain (or must not, see keyword_mode). One line; a value for another type, a line break or more than 500 characters is refused with invalid_parameter. An api monitor does not check a keyword: there it is refused with invalid_parameter pointing to assert_body (the response body check), and switching an http monitor that has one to api is refused unless the same request clears it (keyword null). On PUT, JSON null or \"\" clears it, also on an api monitor that still has one from before; omitted keeps it.","example":"Add to cart"},"keyword_mode":{"type":"string","enum":["contains","not_contains"],"default":"contains","description":"http monitors: whether keyword must be present or absent. Another value or another type is refused with invalid_parameter; on an api monitor only \"contains\" (the default a GET shows) is accepted, and it writes nothing. JSON null or \"\" is refused (cannot be empty); omit the field to keep the stored value."},"request_method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"default":"GET","description":"api monitors: HTTP method of the check request (case-insensitive). Another value or another type is refused with invalid_parameter. JSON null or \"\" is refused (cannot be empty); omit the field to keep the stored value."},"request_headers":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":2000},"maxProperties":20,"description":"http and api monitors: headers sent with every check, as an object of name to value. Write-only: responses list the names in request_header_names and never return a value. Names are HTTP tokens starting with a letter (at most 64 characters, no duplicates); Host, Content-Length, Transfer-Encoding, Connection, Keep-Alive, Upgrade, TE, Trailer, Proxy-Connection and Proxy-Authorization are set by the checker and refused. Values are non-empty strings of one line, at most 2000 characters; at most 20 headers and 10000 characters in all. A monitor with headers does not follow redirects (an api monitor never does), so a header is never sent to another host: point the monitor at the final URL. Read from the request body only; in the query string it is refused. Anything else is refused with invalid_parameter. The object replaces the stored headers whole; {} or null clears them, omitted keeps them.","example":{"Authorization":"Bearer <token>","Accept":"application/json"}},"request_body":{"type":["string","null"],"maxLength":10000,"description":"api monitors: request body for POST, PUT, PATCH and DELETE checks, at most 10000 characters. Read from the request body only; in the query string it is refused. Returned only by single-monitor GET, to a caller who may edit the monitor with a key holding the monitors scope; everywhere else request_body_set says whether one is stored. A value for another type is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"{\"ping\":true}"},"assert_body":{"type":["string","null"],"maxLength":500,"description":"api monitors: text the response body must contain. One line, at most 500 characters; a value for another type is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"\"status\":\"ok\""},"assert_status":{"type":["integer","null"],"minimum":100,"maximum":599,"description":"api monitors: expected HTTP status, overriding expected_code. An integer from 100 to 599; anything else, or a value for another type, is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":201},"dns_watch_types":{"type":"array","items":{"type":"string","enum":["A","AAAA","MX","NS","CNAME","TXT"]},"minItems":1,"description":"dns_change monitors: DNS record types whose changes alert (case-insensitive, duplicates merged). Defaults to A, MX, NS. An empty list, an unknown type or a value for another type is refused with invalid_parameter. On a service name (a label starting with «_»: _dmarc, _acme-challenge, a DKIM selector) only TXT and CNAME are allowed; anything else, the default included, is refused with invalid_parameter (R37). A JSON array or a comma-separated string. JSON null or \"\" is refused; omit the field to keep the stored value.","example":["A","MX","NS"]},"udp_payload":{"type":"string","maxLength":1536,"description":"udp monitors, required on create and on a switch to udp: the datagram sent on every check (the example is an NTP client request), 1-512 bytes once decoded. Text (udp_format=text): one line without control characters. Hex (udp_format=hex): pairs of 0-9/a-f, spaces or colons between them allowed (up to 1536 characters as sent); stored lowercase without separators. Read from the request body only; in the query string it is refused. Cannot be cleared; omitted on PUT keeps it. Returned only by single-monitor GET, to a caller who may edit the monitor with a key holding the monitors scope; everywhere else udp_payload_set says whether one is stored.","example":"1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},"udp_format":{"type":"string","enum":["text","hex"],"default":"text","description":"udp monitors: how udp_payload and udp_expect are written. Changing it re-checks both stored values in the new format. A stored payload that is valid in both formats (\"abcd\") is re-read in the new one, not converted."},"udp_expect":{"type":["string","null"],"maxLength":1536,"description":"udp monitors: bytes a reply must contain to count as valid, in udp_format, at most 512 bytes. Empty or null accepts any reply. On PUT, JSON null or \"\" clears it; omitted keeps it."},"udp_packets":{"type":"integer","minimum":1,"maximum":5,"default":3,"description":"udp monitors: packets sent per check, one at a time."},"udp_timeout_ms":{"type":"integer","minimum":200,"maximum":2000,"default":1000,"description":"udp monitors: how long to wait for the reply to each packet, in milliseconds."},"udp_max_loss_pct":{"type":"integer","minimum":0,"maximum":80,"default":50,"description":"udp monitors: the share of packets that may go without a valid reply (no reply, ICMP port unreachable, an unexpected or oversized reply) while the monitor stays up. At least one valid reply is always required: a sent packet without a reply is never up."},"cache_bust":{"type":"boolean","default":false,"description":"http and api monitors: request freshness. On, every check requests the stored url with one extra query parameter, enterno_nocache=<random hex>, new for every check, so a CDN or caching proxy cannot answer from a stored copy. The stored url, the duplicate check, history and status pages keep the address as it is. Existing parameters, their order and escaping are kept; the parameter goes before any fragment. Refused with invalid_parameter (parameter cache_bust) for a url whose query carries a known signature or CDN token parameter (Signature, X-Amz-Signature, sig, Policy, Key-Pair-Id, hdnts and the like; a plain token= is not one of them) or already has enterno_nocache, and for a later url change that would make it so. It does not guarantee an answer from the origin: a cache that ignores the query string, or a second cache layer, can still answer. The status and keyword assertions still decide up or down. Switching to another type turns it off."},"assert_body_case":{"type":"boolean","default":false,"description":"api monitors: whether assert_body must match letter case. Off (the default, and how every existing monitor has always checked), «OK» also matches «ok». Refused with invalid_parameter (parameter assert_body_case) for a value other than true/false, and for a type that does not read it; switching to another type turns it off."},"request_timeout":{"type":"integer","minimum":1,"maximum":30,"default":15,"description":"http and api monitors: seconds for the whole request, redirects included. Refused with invalid_parameter (parameter request_timeout) outside 1-30 and for other types; switching to another type resets it to 15."},"follow_redirects":{"type":["boolean","null"],"description":"http and api monitors: whether a check follows redirects — at most 5, each hop resolved and checked before it connects. null returns to the type's rule (an http monitor follows unless it has request_headers; an api monitor does not). A monitor with request_headers, or an api monitor with a request_body, follows only to the same host and port (or http to https on the default ports): a redirect elsewhere is the answer. Refused with invalid_parameter (parameter follow_redirects) for a value other than true, false or null, and for other types; switching to another type resets it."},"heartbeat_grace_minutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"heartbeat monitors only: minutes a ping may be late before the monitor goes down, as the cabinet's grace field. Refused with invalid_parameter (parameter heartbeat_grace_minutes) outside 0-1440 and for other types (including a check_type sent in the same request)."}}}}}},"responses":{"201":{"description":"Monitor created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Monitor"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Validation error: invalid_parameter (a boolean or check_regions of the wrong type, or a monitor setting — name, keyword, keyword_mode, request_*, assert_*, dns_watch_types — of the wrong shape, over its limit, or sent for a check type that does not use it; details.parameter names the field), invalid_check_type, invalid_url, missing_parameter (url)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"409":{"description":"monitor_exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"encryption_unavailable: the request carries request_headers, request_body or udp_payload, they are stored encrypted, and no usable encryption key is configured on the server. Nothing was written; retry later. Not a client error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":""},"put":{"operationId":"updateMonitor","summary":"Update a monitor","tags":["Monitors"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"New target. For http/ssl/api monitors (the sent check_type, else the stored one) it is validated exactly as on POST: the scheme defaults to https://, a private, reserved or unresolvable host is refused with invalid_url."},"check_type":{"type":"string","enum":["http","ssl","ping","dns","domain","heartbeat","port","api","dns_change","udp"],"description":"New type. Switching to http/ssl/api re-validates the stored url as that type — the same SSRF check as POST, refused with invalid_url — and stores it with a scheme if it had none. Switching type also resets the settings the new type does not use (keyword outside http, headers outside http/api; method, body and assertions outside api; dns_watch_types outside dns_change). Switching to udp requires port and udp_payload (the stored port is kept when a port monitor becomes udp); leaving udp resets the udp_* settings."},"interval_minutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Check interval in minutes, an integer from 1 to 1440; anything else is refused with invalid_parameter. A value below the plan's minimum is refused with invalid_parameter."},"expected_code":{"type":"integer","minimum":0,"maximum":599,"description":"Expected HTTP status: 0 (any 2xx/3xx, as the cabinet allows) or an integer from 100 to 599; anything else is refused with invalid_parameter."},"port":{"type":"integer","minimum":1,"maximum":65535,"description":"port and udp monitors. Omitted keeps the current port. Entering port mode without a value uses 80, as on create; entering udp mode without a value is refused (missing_parameter). Leaving both modes clears the stored port. JSON null is treated as omitted. One monitor per host and type: the port is not part of the uniqueness of (account, url, check_type), so a second udp or port monitor on the same host is 409 monitor_exists."},"is_active":{"type":"boolean","description":"Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter. Switching a stopped udp monitor on is refused while its payer is not on a paid plan (403 plan_required) or while it has no udp_payload (409 udp_setup_required; send udp_payload in the same request)."},"notify_email":{"type":"boolean","description":"Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"notify_telegram":{"type":"boolean","description":"Telegram alerts for this monitor: to the chat it was added from in the bot and to the owner's linked chat. false stops both. Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"show_on_status_page":{"type":"boolean","description":"Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter."},"tags":{"type":"array","description":"Up to 10 tags, each up to 30 chars; lower-cased and deduplicated on write","items":{"type":"string"},"example":["prod","client:acme"]},"note":{"type":"string","description":"Private note up to 500 chars; never shown on public status pages","example":"Call the on-call engineer first, then #ops in their Slack"},"group_name":{"type":["string","null"],"maxLength":50,"description":"The monitor's group, as «Set group» in the cabinet: up to 50 letters (Latin or Cyrillic), digits, spaces, \"_\" and \"-\"; a name with other characters is 400 invalid_parameter. null or \"\" takes the monitor out of its group. Business plan and above: on a lower plan a change is 403 plan_required (details.required_plan, details.your_plan); sending the group the monitor already has is not a change.","example":"prod-eu"},"check_regions":{"type":"array","items":{"type":"string","enum":["ru-msk","eu-de","us-east","ap-sg","eu-nl"]},"description":"Regions to check from. Also accepted as a comma-separated string; any other shape is rejected with 400 invalid_parameter. Free: ru-msk only; Pro and above: every listed region — codes outside the plan fall back to ru-msk."},"space_id":{"type":"integer","minimum":0,"description":"Move the monitor into a client space (GET /spaces), or out of any with 0. The caller must be able to edit both the monitor and the space, and they must live in the same place: a team monitor joins a space of the same team, a personal monitor a personal space of the same account. Anything else is 404 not_found, and nothing else in the request is applied. Requires the agency_workspaces_enabled plan flag of whoever pays for the space (402 plan_required); taking a monitor out (0) needs no plan. Entering or leaving a space sets show_on_status_page to false (in the same write, whatever the request sent): a monitor in a space is never on the account's status page, and leaving one publishes nothing until the monitor is flagged again. The space move and the other fields are one transaction."},"name":{"type":["string","null"],"maxLength":255,"description":"Display name, any check type. Control characters become spaces; longer than 255 characters is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"Checkout API"},"keyword":{"type":["string","null"],"maxLength":500,"description":"http monitors: text the response body must contain (or must not, see keyword_mode). One line; a value for another type, a line break or more than 500 characters is refused with invalid_parameter. An api monitor does not check a keyword: there it is refused with invalid_parameter pointing to assert_body (the response body check), and switching an http monitor that has one to api is refused unless the same request clears it (keyword null). On PUT, JSON null or \"\" clears it, also on an api monitor that still has one from before; omitted keeps it.","example":"Add to cart"},"keyword_mode":{"type":"string","enum":["contains","not_contains"],"default":"contains","description":"http monitors: whether keyword must be present or absent. Another value or another type is refused with invalid_parameter; on an api monitor only \"contains\" (the default a GET shows) is accepted, and it writes nothing. JSON null or \"\" is refused (cannot be empty); omit the field to keep the stored value."},"request_method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"default":"GET","description":"api monitors: HTTP method of the check request (case-insensitive). Another value or another type is refused with invalid_parameter. JSON null or \"\" is refused (cannot be empty); omit the field to keep the stored value."},"request_headers":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":2000},"maxProperties":20,"description":"http and api monitors: headers sent with every check, as an object of name to value. Write-only: responses list the names in request_header_names and never return a value. Names are HTTP tokens starting with a letter (at most 64 characters, no duplicates); Host, Content-Length, Transfer-Encoding, Connection, Keep-Alive, Upgrade, TE, Trailer, Proxy-Connection and Proxy-Authorization are set by the checker and refused. Values are non-empty strings of one line, at most 2000 characters; at most 20 headers and 10000 characters in all. A monitor with headers does not follow redirects (an api monitor never does), so a header is never sent to another host: point the monitor at the final URL. Read from the request body only; in the query string it is refused. Anything else is refused with invalid_parameter. The object replaces the stored headers whole; {} or null clears them, omitted keeps them.","example":{"Authorization":"Bearer <token>","Accept":"application/json"}},"request_body":{"type":["string","null"],"maxLength":10000,"description":"api monitors: request body for POST, PUT, PATCH and DELETE checks, at most 10000 characters. Read from the request body only; in the query string it is refused. Returned only by single-monitor GET, to a caller who may edit the monitor with a key holding the monitors scope; everywhere else request_body_set says whether one is stored. A value for another type is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"{\"ping\":true}"},"assert_body":{"type":["string","null"],"maxLength":500,"description":"api monitors: text the response body must contain. One line, at most 500 characters; a value for another type is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":"\"status\":\"ok\""},"assert_status":{"type":["integer","null"],"minimum":100,"maximum":599,"description":"api monitors: expected HTTP status, overriding expected_code. An integer from 100 to 599; anything else, or a value for another type, is refused with invalid_parameter. On PUT, JSON null or \"\" clears it; omitted keeps it.","example":201},"dns_watch_types":{"type":"array","items":{"type":"string","enum":["A","AAAA","MX","NS","CNAME","TXT"]},"minItems":1,"description":"dns_change monitors: DNS record types whose changes alert (case-insensitive, duplicates merged). Defaults to A, MX, NS. An empty list, an unknown type or a value for another type is refused with invalid_parameter. On a service name (a label starting with «_»: _dmarc, _acme-challenge, a DKIM selector) only TXT and CNAME are allowed; anything else, the default included, is refused with invalid_parameter (R37). A JSON array or a comma-separated string. JSON null or \"\" is refused; omit the field to keep the stored value.","example":["A","MX","NS"]},"udp_payload":{"type":"string","maxLength":1536,"description":"udp monitors, required on create and on a switch to udp: the datagram sent on every check (the example is an NTP client request), 1-512 bytes once decoded. Text (udp_format=text): one line without control characters. Hex (udp_format=hex): pairs of 0-9/a-f, spaces or colons between them allowed (up to 1536 characters as sent); stored lowercase without separators. Read from the request body only; in the query string it is refused. Cannot be cleared; omitted on PUT keeps it. Returned only by single-monitor GET, to a caller who may edit the monitor with a key holding the monitors scope; everywhere else udp_payload_set says whether one is stored.","example":"1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},"udp_format":{"type":"string","enum":["text","hex"],"default":"text","description":"udp monitors: how udp_payload and udp_expect are written. Changing it re-checks both stored values in the new format. A stored payload that is valid in both formats (\"abcd\") is re-read in the new one, not converted."},"udp_expect":{"type":["string","null"],"maxLength":1536,"description":"udp monitors: bytes a reply must contain to count as valid, in udp_format, at most 512 bytes. Empty or null accepts any reply. On PUT, JSON null or \"\" clears it; omitted keeps it."},"udp_packets":{"type":"integer","minimum":1,"maximum":5,"default":3,"description":"udp monitors: packets sent per check, one at a time."},"udp_timeout_ms":{"type":"integer","minimum":200,"maximum":2000,"default":1000,"description":"udp monitors: how long to wait for the reply to each packet, in milliseconds."},"udp_max_loss_pct":{"type":"integer","minimum":0,"maximum":80,"default":50,"description":"udp monitors: the share of packets that may go without a valid reply (no reply, ICMP port unreachable, an unexpected or oversized reply) while the monitor stays up. At least one valid reply is always required: a sent packet without a reply is never up."},"cache_bust":{"type":"boolean","default":false,"description":"http and api monitors: request freshness. On, every check requests the stored url with one extra query parameter, enterno_nocache=<random hex>, new for every check, so a CDN or caching proxy cannot answer from a stored copy. The stored url, the duplicate check, history and status pages keep the address as it is. Existing parameters, their order and escaping are kept; the parameter goes before any fragment. Refused with invalid_parameter (parameter cache_bust) for a url whose query carries a known signature or CDN token parameter (Signature, X-Amz-Signature, sig, Policy, Key-Pair-Id, hdnts and the like; a plain token= is not one of them) or already has enterno_nocache, and for a later url change that would make it so. It does not guarantee an answer from the origin: a cache that ignores the query string, or a second cache layer, can still answer. The status and keyword assertions still decide up or down. Switching to another type turns it off."},"assert_body_case":{"type":"boolean","default":false,"description":"api monitors: whether assert_body must match letter case. Off (the default, and how every existing monitor has always checked), «OK» also matches «ok». Refused with invalid_parameter (parameter assert_body_case) for a value other than true/false, and for a type that does not read it; switching to another type turns it off."},"request_timeout":{"type":"integer","minimum":1,"maximum":30,"default":15,"description":"http and api monitors: seconds for the whole request, redirects included. Refused with invalid_parameter (parameter request_timeout) outside 1-30 and for other types; switching to another type resets it to 15."},"follow_redirects":{"type":["boolean","null"],"description":"http and api monitors: whether a check follows redirects — at most 5, each hop resolved and checked before it connects. null returns to the type's rule (an http monitor follows unless it has request_headers; an api monitor does not). A monitor with request_headers, or an api monitor with a request_body, follows only to the same host and port (or http to https on the default ports): a redirect elsewhere is the answer. Refused with invalid_parameter (parameter follow_redirects) for a value other than true, false or null, and for other types; switching to another type resets it."},"heartbeat_grace_minutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"heartbeat monitors only: minutes a ping may be late before the monitor goes down, as the cabinet's grace field. Refused with invalid_parameter (parameter heartbeat_grace_minutes) outside 0-1440 and for other types (including a check_type sent in the same request)."},"confirm_secret_host_change":{"type":"boolean","description":"Required as true when the new url would send this monitor's STORED request_headers, request_body or udp_payload to another host, or to the same host over http after https (hosts compare case-insensitively without a trailing dot; another port or path is not another host). Without it such a change is refused with 422 secret_host_change_unconfirmed and nothing is written. Only the monitor's owner (for a team monitor, the team's owner) may give it: anyone else with edit rights gets 403 secret_host_change_forbidden and moves the monitor by sending those fields anew (or clearing them). Fields sent anew or cleared in the same request are the caller's own and need no confirmation. Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\" in any case. Any other value is rejected with 400 invalid_parameter. Not stored; the api_log line of a confirmed change names the destination (secrets_to=<host>), never a value. Each confirmed change is recorded in the audit log, and the owner gets an email naming the monitor, the host, the fields and the key."}}}}}},"responses":{"200":{"description":"Monitor updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Monitor"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Validation error: invalid_parameter (a boolean or check_regions of the wrong type, or a monitor setting — name, keyword, keyword_mode, request_*, assert_*, dns_watch_types — of the wrong shape, over its limit, or sent for a check type the monitor will not have; details.parameter names the field), invalid_check_type, invalid_url (the effective url/check_type pair — sent values over stored ones — names an http/ssl/api monitor on a private, reserved or unresolvable host; the same rule POST applies), no_changes (nothing to update), invalid_parameter for a negative space_id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"space_id: the plan behind the client space lacks agency_workspaces_enabled (plan_required)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"secret_host_change_forbidden: the new url would send the monitor's stored request headers, body or UDP payload to another host (or over plain http), and only the monitor's owner (a team monitor: the team's owner) may allow that. details.host and details.fields as for 422. Nothing was written; send those fields again (or clear them) with the change. secret_scope_change_forbidden: the monitor keeps its owner's stored request_headers and the caller, not the monitor's owner (a team monitor: the team's owner), changes the url (any part: path, query, port), request_method or request_body without sending the headers anew (every value — one kept as it was does not count) or clearing them. details.fields names what changes. Nothing was written.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Monitor not found, or space_id names a client space the caller may not edit or one the monitor cannot join","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"secret_host_change_unconfirmed: the new url would send the monitor's stored request headers, body or UDP payload to another host, or over plain http (R28). details.host names the destination, details.fields the fields that would travel (never their values), details.parameter is confirm_secret_host_change. Nothing was written. Repeat with confirm_secret_host_change: true, or send those fields again (or clear them) with the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"409":{"description":"monitor_exists: the new url and check_type are another monitor's of this account. udp_setup_required: is_active true on a stopped udp monitor that has no udp_payload (details.parameter udp_payload); nothing was written. request_settings_unreadable: a stored request secret (details.parameter names it: request_headers, request_body or udp_payload) does not decrypt, and this request sends a settings field (any of name, keyword, request_*, assert_*, dns_watch_types, udp_*, cache_bust — sent or cleared) or changes check_type while that field — one the monitor's type reads — is not sent again or cleared. Send that field again (or clear it, null) with the change. A write without settings fields — is_active, interval_minutes, check_regions, tags, note, space_id — still goes through. Nothing was written.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"encryption_unavailable: the request carries request_headers, request_body or udp_payload, they are stored encrypted, and no usable encryption key is configured on the server. Nothing was written; retry later. Not a client error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":""},"delete":{"operationId":"deleteMonitor","summary":"Delete a monitor","tags":["Monitors"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Monitor deleted","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Monitor not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"The delete failed and nothing was removed (error code storage)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Deletes the monitor together with its history: checks, regional checks, incidents and their updates go in the same database statement. All or nothing: when the delete fails, the monitor and its history are left as they were and the answer is 500 with error code storage — safe to retry. A monitor already gone answers 404, including one deleted by an earlier attempt of the same request sent without X-Idempotency-Key; with the same key the stored 200 is returned."}},"/monitors/import":{"post":{"operationId":"importMonitors","summary":"Import monitors from CSV","tags":["Monitors"],"description":"Creates up to monitor_import_rows_max monitors (200 on Business) from CSV text and reports, row by row, what happened. Every row goes through the same SSRF check as POST /monitors; a refused row does not stop the others. A host name that does not resolve and one that resolves to an internal address get the same answer (target_unavailable, one neutral message), so the report cannot be used to map internal DNS; an IP literal or localhost in a private range is blocked_ssrf. A row that fails for an unexpected reason is failed and the others still run. The monitor limit is the caller's plan, counted against the caller's own monitors, exactly as for a single create — and re-counted before every insert, so monitors created elsewhere during the import are counted too. Rows that cannot be resolved within about 20 seconds are reported as deferred and not created — import the same file again to finish them. A retry with the same idempotency_key (or X-Idempotency-Key) returns the stored report instead of running again; the same key with a different request is refused with 409. Columns: url, check_type (http, ssl, ping, dns, domain), name, interval_minutes, tags, note; a name longer than 255 characters is refused as invalid_field (parameter: name) by the rule POST /monitors uses, never cut; the header line is optional and the delimiter may be \",\" or \";\". Requires the monitors scope, the monitor_import_enabled plan flag (Business and above), and a team role other than viewer or auditor. Also reachable as /monitors-import.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","maxLength":262144,"description":"CSV text, UTF-8, at most 256 KB and monitor_import_rows_max data rows. More rows than allowed refuses the whole request with too_many_rows.","example":"url,check_type,name\nhttps://example.com,http,Home\nexample.com,ssl,Certificate"},"dry_run":{"type":"boolean","default":false,"description":"Check every row and report what an import would do; nothing is created and nothing is stored."},"idempotency_key":{"type":"string","pattern":"^[A-Za-z0-9._:-]{8,128}$","description":"Retry protection for an applied import: 8–128 characters of [A-Za-z0-9._:-], anything else is refused with 400 invalid_parameter. Falls back to the X-Idempotency-Key header (which must then meet the same rule). The same key with the same request returns the stored report (replayed: true) for 90 days; with a different request, 409 idempotency_key_conflict. Not used by dry_run."},"interval_minutes":{"type":"integer","minimum":1,"maximum":1440,"default":60,"description":"Default for rows that do not name one. Raised to the plan's minimum interval, as for a single create."},"check_regions":{"type":"array","items":{"type":"string"},"description":"Regions for every imported monitor; codes outside the plan fall back to ru-msk.","default":["ru-msk"]},"team_monitor":{"type":"boolean","default":false,"description":"Attach the monitors to the caller's team (owner, admin or member)."}}}}}},"responses":{"200":{"description":"Per-row report. status is complete, or partial when rows were deferred, hit the plan limit or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"dry_run":{"type":"boolean"},"replayed":{"type":"boolean","description":"true when the report is the stored answer to an earlier request with the same idempotency key"},"import_id":{"type":["integer","null"],"description":"null for a dry run, or if the report could not be stored (the monitors are created either way)"},"status":{"type":"string","enum":["complete","partial"]},"summary":{"type":"object","description":"total plus a count per row status","additionalProperties":{"type":"integer"}},"limit":{"type":"object","properties":{"monitors_limit":{"type":"integer"},"used_before":{"type":"integer"},"remaining_after":{"type":"integer"}}},"rows":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","description":"data row number in the CSV, 1-based, header excluded"},"url":{"type":"string","description":"the stored address when the row passed the check, otherwise the address as sent"},"check_type":{"type":"string"},"status":{"type":"string","enum":["created","created_paused","exists","duplicate_in_file","invalid_url","blocked_ssrf","target_unavailable","invalid_type","invalid_field","plan_required","limit_reached","deferred","failed"]},"monitor_id":{"type":"integer","description":"created or existing monitor"},"paused_reason":{"type":"string","description":"created_paused rows: udp_setup. A udp row (UptimeRobot type UDP, with the Port column) is created switched off, because the file carries no udp_payload; set it (PUT udp_payload) and switch the monitor on. plan_required rows: udp monitors need a paid plan of whoever pays for them."},"duplicate_of_row":{"type":"integer"},"parameter":{"type":"string","description":"invalid_field rows: the column that was refused (name, port)"},"message":{"type":"string"},"interval_minutes":{"type":"integer","description":"created rows: the interval the monitor got"},"interval_adjusted":{"type":"boolean","description":"true when interval_minutes differs from the requested one (raised to the plan minimum, or capped at 1440)"},"interval_requested":{"type":"integer"}}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Validation error: missing_parameter (csv), empty, too_many_rows, invalid_csv, invalid_parameter (interval_minutes, idempotency_key)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"plan_required: the plan does not include monitor import","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"insufficient_scope, or forbidden: the caller's team role is viewer or auditor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"import_in_progress (another import of this account holds the lock) or idempotency_key_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"payload_too_large: body or CSV over 256 KB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/mx":{"get":{"operationId":"mx","summary":"Mail exchangers","description":"Mail exchangers. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Mail exchangers","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/og-preview":{"get":{"operationId":"ogPreview","summary":"Open Graph and social preview","description":"Open Graph and social preview. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Open Graph and social preview","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/pagespeed":{"get":{"operationId":"pagespeed","summary":"PageSpeed","description":"PageSpeed. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"strategy","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"PageSpeed","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/performance":{"get":{"operationId":"performance","summary":"Performance metrics","description":"Performance metrics. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Performance metrics","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/ping":{"get":{"operationId":"ping","summary":"Ping, port check, or traceroute","description":"Ping a host, check ports, or run a traceroute.","tags":["Ping"],"parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"}},{"name":"action","in":"query","schema":{"type":"string","enum":["ping","ports","traceroute"],"default":"ping"}},{"name":"count","in":"query","schema":{"type":"integer","minimum":1,"maximum":10,"default":4},"description":"Ping count (for action=ping)"},{"name":"ports","in":"query","schema":{"type":"string","default":"80,443"},"description":"Ports to check (for action=ports)"},{"name":"max_hops","in":"query","schema":{"type":"integer","minimum":1,"maximum":30,"default":15},"description":"Max hops (for action=traceroute)"}],"responses":{"200":{"description":"Ping/port/traceroute result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PingResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"Ping, port check, or traceroute (POST)","description":"Ping a host, check ports, or run a traceroute.\n\nSame as GET, but parameters are sent in the request body.","operationId":"pingPost","tags":["Ping"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"host":{"type":"string"},"action":{"type":"string","enum":["ping","ports","traceroute"],"default":"ping"},"count":{"type":"integer","description":"Ping count (for action=ping)","default":4},"ports":{"type":"string","description":"Ports to check (for action=ports)","default":"80,443"},"max_hops":{"type":"integer","description":"Max hops (for action=traceroute)","default":15}},"required":["host"]}},"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string"},"action":{"type":"string","enum":["ping","ports","traceroute"],"default":"ping"},"count":{"type":"integer","description":"Ping count (for action=ping)","default":4},"ports":{"type":"string","description":"Ports to check (for action=ports)","default":"80,443"},"max_hops":{"type":"integer","description":"Max hops (for action=traceroute)","default":15}},"required":["host"]}}}},"responses":{"200":{"description":"Ping/port/traceroute result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PingResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/propagation":{"get":{"operationId":"propagation","summary":"DNS propagation across resolvers","description":"DNS propagation across resolvers. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"DNS propagation across resolvers","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/protocol":{"get":{"operationId":"protocol","summary":"HTTP version and TLS negotiation","description":"HTTP version and TLS negotiation. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"HTTP version and TLS negotiation","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/redirects":{"get":{"operationId":"redirects","summary":"Redirect chain","description":"Redirect chain. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"max","in":"query","schema":{"type":"string"}},{"name":"ua","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Redirect chain","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/resolve-url":{"get":{"operationId":"resolveUrl","summary":"Resolve a URL to its final target","description":"Resolve a URL to its final target. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Resolve a URL to its final target","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/reverse-ip":{"get":{"operationId":"reverseIp","summary":"Domains sharing an address","description":"Domains sharing an address. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"ip","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Domains sharing an address","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"ip\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/robots":{"get":{"operationId":"robots","summary":"robots.txt rules","description":"robots.txt rules. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}},{"name":"test_url","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"robots.txt rules","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/schema":{"get":{"operationId":"schema","summary":"Structured data","description":"Structured data. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Structured data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/security":{"get":{"operationId":"security","summary":"Security headers grade","description":"Security headers grade. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Security headers grade","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/securityheaders":{"servers":[{"url":"https://enterno.io/api","description":"Keyless tool endpoints (no API key)"}],"get":{"operationId":"securityHeadersCompat","summary":"Security headers grade — securityheaders.com-compatible","description":"Drop-in replacement for the discontinued securityheaders.com API: same query parameters, same response keys and the X-Grade / X-Score response headers. No API key. The grade follows the published securityheaders.com point table (HTTPS 30, HSTS 25, CSP 25, X-Frame-Options / X-Content-Type-Options / Referrer-Policy / Permissions-Policy 20 each; bands A+ 95 %, A 75 %, B 60 %, C 50 %, D 29 %, E 14 %), with the details documented at https://enterno.io/en/securityheaders-api#grading. Additive fields: summary.score and the enterno object. HEAD returns the same status and X-Grade / X-Score headers without a body. Limits: 10 requests per minute and 300 per day per IP (IPv6 per /64); each target host fetched at most 6 times and each target address 12 times a minute; answers are cached for 5 minutes (error pages for 30 seconds).","tags":["Check"],"security":[{}],"parameters":[{"name":"q","in":"query","required":true,"description":"Host name or http(s) URL to scan, on port 80 or 443 only (redirects to other ports are not followed). A bare host is scanned over https.","schema":{"type":"string","maxLength":2048},"example":"example.com"},{"name":"followRedirects","in":"query","required":false,"description":"on (default): follow up to 5 redirects and grade the final response. off: grade the first response; a redirect is graded R.","schema":{"type":"string","enum":["on","off"],"default":"on"}},{"name":"hide","in":"query","required":false,"description":"Accepted for compatibility. Results are never listed publicly, so it has no effect.","schema":{"type":"string","enum":["on","off"],"default":"on"}}],"responses":{"200":{"description":"The grade and the header analysis, in the securityheaders.com API shape.","headers":{"X-Grade":{"description":"The grade: A+, A, B, C, D, E, F, or R for an unfollowed redirect.","schema":{"type":"string"}},"X-Score":{"description":"Base64 of {\"score\": <grade>, \"colour\": <colour name>}.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["status","summary","rawHeaders","missingHeaders","validationErrors","upcomingHeaders","additionalInformation"],"properties":{"status":{"type":"string","const":"good"},"summary":{"type":"object","required":["site","grade","ip","timestamp","headers","gradeCap"],"properties":{"site":{"type":"string","description":"The URL scanned."},"grade":{"type":"string","enum":["A+","A","B","C","D","E","F","R"]},"ip":{"type":"string"},"timestamp":{"type":"string","description":"UTC, in the old format: \"20 Oct 2026 10:00:00 UTC\".","example":"20 Oct 2026 10:00:00 UTC"},"headers":{"type":"object","description":"The six graded headers, each green, yellow or red.","additionalProperties":{"type":"string","enum":["green","yellow","red"]}},"gradeCap":{"type":"string","description":"The highest grade the response could get: A when any graded header is missing or weak, otherwise A+."},"score":{"type":["integer","null"],"description":"Not in the old API. Percentage of the 160 points the grade comes from; null for R."}}},"rawHeaders":{"type":"array","description":"The status line first, then every response header in served order.","items":{"type":"object","required":["key","value","colour"],"properties":{"key":{"type":"string"},"value":{"type":"string"},"colour":{"type":"string"},"info":{"type":"string"}}}},"missingHeaders":{"type":"object","additionalProperties":{"type":"object","properties":{"missing":{"type":"string"},"key":{"type":"string"}}}},"validationErrors":{"type":"object","additionalProperties":{"type":"string"}},"upcomingHeaders":{"type":"object","additionalProperties":{"type":"object","properties":{"info":{"type":"string"},"key":{"type":"string"}}}},"additionalInformation":{"type":"object","additionalProperties":{"type":"object","properties":{"info":{"type":"string"},"colour":{"type":"string"}}}},"enterno":{"type":"object","description":"Not in the old API: the final URL, status code, points, cache flag and links.","properties":{"url":{"type":"string"},"status_code":{"type":"integer"},"follow_redirects":{"type":"boolean"},"responses":{"type":"integer"},"points":{"type":"integer"},"max_points":{"type":"integer"},"bot_protected":{"type":"boolean"},"cached":{"type":"boolean"},"methodology":{"type":"string"},"full_report":{"type":"string"}}}}}}}},"400":{"description":"Missing or invalid q, or a non-public target (internal, loopback, reserved, credentials in the URL).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityHeadersError"}}}},"422":{"description":"The host name does not resolve.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityHeadersError"}}}},"429":{"description":"Per-IP or per-host limit reached. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityHeadersError"}}}},"502":{"description":"The site could not be reached or its headers could not be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityHeadersError"}}}}}}},"/seo-audit":{"get":{"operationId":"seoAudit","summary":"On-page SEO audit","description":"On-page SEO audit. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"On-page SEO audit","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/seo-guard":{"get":{"operationId":"seoGuardVerdict","summary":"Read the SEO Guard verdict for a domain","description":"Requires an API key with seo_guard scope and an enabled project owned by the caller. Poll while pending=true. A pending response is HTTP 202 with a fail-closed ERROR/exit_code=4; the previous completed result is diagnostic data under previous. See /docs/seo-guard-verdict-api.md.","tags":["SEO Guard"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","const":"verdict"},"description":"Select the read-only verdict action."},{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Domain of an SEO Guard project owned by the API key holder."}],"responses":{"200":{"description":"No check is in flight: the latest judged verdict, or ERROR when no judged scan exists.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/SeoGuardVerdictComplete"},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"202":{"description":"A newer check is queued or running; keep polling. Top-level verdict fails closed.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/SeoGuardVerdictPending"},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"400":{"description":"Domain parameter is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"402":{"description":"SEO Guard is not enabled for this plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"403":{"description":"API key lacks the seo_guard scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"404":{"description":"No matching SEO Guard project belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}}}},"post":{"operationId":"seoGuardCheckOrDeployment","summary":"Queue an SEO Guard check or record a deployment","description":"Requires an API key with seo_guard scope, an enabled plan and an owned SEO Guard project. action=check requests an immediate check. action=deployments records a marker for version, then requests a check. A 503 from deployments means the marker was recorded but the check was not queued; retry the same version (and X-Idempotency-Key if supplied). The marker is idempotent for a project/version. A 503 is not cached by v4 idempotency replay. Poll GET action=verdict after a successful check. GitLab actions are outside this contract.","tags":["SEO Guard"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","enum":["check","deployments"],"default":"check"},"description":"check queues an immediate scan; deployments records a marker and queues a scan.","x-postman-use-default":true},{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Domain of an SEO Guard project owned by the API key holder."},{"name":"version","in":"query","required":false,"schema":{"type":"string"},"description":"Required when action=deployments unless supplied in JSON or form body; repeated version reuses its marker."},{"name":"message","in":"query","required":false,"schema":{"type":"string"},"description":"Optional deployment message."},{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Optional retry key. The same key and request are replayed for successful 2xx responses for 24 hours; 503 can be retried."}],"requestBody":{"required":false,"description":"Optional JSON body for version and message on action=deployments. Values can also be supplied as query or form fields.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"200":{"description":"A check job is active, or a deployment marker was recorded and a check job is active.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SeoGuardCheckAccepted"},{"$ref":"#/components/schemas/SeoGuardDeploymentAccepted"}]}}}},"400":{"description":"Domain or deployment version is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"402":{"description":"SEO Guard is not enabled for this plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"403":{"description":"API key lacks the seo_guard scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"404":{"description":"No matching SEO Guard project belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"409":{"description":"The same X-Idempotency-Key is in flight or was used with a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeoGuardIdempotencyConflict"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"500":{"description":"Could not record the deployment marker.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}},"503":{"description":"Queue unavailable. For deployments the marker was recorded; retry the same version.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SeoGuardCheckQueueUnavailable"},{"$ref":"#/components/schemas/SeoGuardDeploymentQueueUnavailable"}]}}}}},"x-postman-variants":[{"name":"Record an SEO Guard deployment and queue a check","query":{"action":"deployments","domain":"","version":"release-1"}}]}},"/smtp-test":{"get":{"operationId":"smtpTest","summary":"SMTP banner and STARTTLS","description":"SMTP banner and STARTTLS. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"target","in":"query","required":true,"schema":{"type":"string"}},{"name":"port","in":"query","schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"SMTP banner and STARTTLS","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/spaces":{"get":{"operationId":"listClientSpaces","summary":"List client spaces","tags":["Monitors"],"description":"Client spaces of the agency cabinet the caller may see: their own personal spaces and the spaces of their team (owner, admin, member and viewer; an auditor seat and an invitation that was never accepted see none). With id, one space; an id that does not exist and one that is not the caller's are both 404. Monitors are listed per space with GET /monitors?space_id=N. Scope monitors or monitors:read.","parameters":[{"name":"id","in":"query","schema":{"type":"integer"},"description":"One space by id"}],"responses":{"200":{"description":"Spaces (a list, or one object with id)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","maxLength":120},"note":{"type":"string","maxLength":500,"description":"Private note for the team; never published"},"team":{"type":"boolean","description":"true for a team space, false for a personal one"},"can_edit":{"type":"boolean","description":"whether the caller may rename it and move monitors into it"},"monitors_count":{"type":"integer"},"created_at":{"type":"string"}}}},{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","maxLength":120},"note":{"type":"string","maxLength":500,"description":"Private note for the team; never published"},"team":{"type":"boolean","description":"true for a team space, false for a personal one"},"can_edit":{"type":"boolean","description":"whether the caller may rename it and move monitors into it"},"monitors_count":{"type":"integer"},"created_at":{"type":"string"}}}]},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Client space not found (or not the caller's)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createClientSpace","summary":"Create a client space","tags":["Monitors"],"description":"Creates a named space for one client of an agency. The client never logs in; only the team sees spaces, and monitors in a space never appear on the account's own public status page. A member of a team creates it in the team unless team is false; a viewer or auditor seat gets 403 forbidden. The feature and the number of spaces come from the plan of whoever pays: the team owner for a team space, the account for a personal one (agency_workspaces_enabled and agency_spaces_limit; 25 on Business). Put monitors into it with PUT /monitors?id=N {\"space_id\": ...}. Scope monitors.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":120,"description":"Control characters are removed and whitespace collapsed; must be unique among the creator's spaces (409 name_taken)"},"note":{"type":"string","maxLength":500},"team":{"type":"boolean","default":true,"description":"Create in the caller's team (when they have one). Accepts true/false, 1/0, or the strings \"true\"/\"false\"/\"on\"/\"off\"/\"yes\"/\"no\"; anything else is 400 invalid_parameter."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","maxLength":120},"note":{"type":"string","maxLength":500,"description":"Private note for the team; never published"},"team":{"type":"boolean","description":"true for a team space, false for a personal one"},"can_edit":{"type":"boolean","description":"whether the caller may rename it and move monitors into it"},"monitors_count":{"type":"integer"},"created_at":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"missing_parameter (name), invalid_parameter, invalid_name (nothing left after cleaning)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"plan_required: the plan behind the space lacks agency_workspaces_enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"forbidden (read-only team seat), insufficient_scope, space_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"name_taken, or busy (another create in the same team is running)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/ssl":{"get":{"operationId":"sslCheck","summary":"SSL/TLS certificate check","description":"Check SSL certificate, chain of trust, protocol and cipher with detailed chain information.","tags":["SSL"],"parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"}},{"name":"port","in":"query","schema":{"type":"integer","default":443}}],"responses":{"200":{"description":"SSL certificate details","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SslResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"SSL/TLS certificate check (POST)","description":"Check SSL certificate, chain of trust, protocol and cipher with detailed chain information.\n\nSame as GET, but parameters are sent in the request body.","operationId":"sslCheckPost","tags":["SSL"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","default":443}},"required":["host"]}},"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","default":443}},"required":["host"]}}}},"responses":{"200":{"description":"SSL certificate details","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SslResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/status":{"get":{"operationId":"getStatusPage","summary":"Get status page data","description":"Public endpoint (no auth required when slug is provided). Returns monitor statuses and recent incidents for a public status page.","tags":["Status"],"security":[{},{"ApiKeyAuth":[]}],"parameters":[{"name":"slug","in":"query","required":false,"schema":{"type":"string"},"description":"Public status-page slug. Omit it and authenticate (scope monitors) to fetch your own status-page config."}],"responses":{"200":{"description":"Status page data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StatusPage"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"404":{"description":"Status page not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/tech-detect":{"get":{"operationId":"techDetect","summary":"Technology fingerprint","description":"Technology fingerprint. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Technology fingerprint","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/tools":{"get":{"operationId":"listTools","summary":"Tools this key can call","description":"Every tool reachable at /api/v4/<tool>, each with an `allowed` flag computed from the calling key's scopes. A client building a menu can tell which rows would return 403 before offering them.","tags":["Tools"],"x-source":"tool-bridge","responses":{"200":{"description":"Tool catalogue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"API key required"}}}},"/traceroute":{"get":{"operationId":"traceroute","summary":"Network route","description":"Network route. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Network route","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"ping\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/url-expand":{"get":{"operationId":"urlExpand","summary":"Resolve a short link","description":"Resolve a short link. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Resolve a short link","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/wayback":{"get":{"operationId":"wayback","summary":"Wayback Machine history","description":"Wayback Machine history. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Wayback Machine history","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"check\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}},"/webhooks":{"get":{"summary":"List Webhook Subscriptions","operationId":"listWebhooks","tags":["Webhooks"],"responses":{"200":{"description":"List of webhook subscriptions","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSubscription"}},"total":{"type":"integer"},"plan_limit":{"type":"integer","description":"Max webhooks allowed by your plan"}}},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse4"}}}}}},"post":{"summary":"Create Webhook Subscription","operationId":"createWebhook","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","example":"https://myapp.com/hooks/enterno"},"name":{"type":"string","example":"My Webhook","default":"My Webhook"},"secret":{"type":"string","example":"mysecret123","description":"HMAC secret. Auto-generated if omitted."},"events":{"type":"array","items":{"type":"string","enum":["monitor.down","monitor.up","monitor.degraded","monitor.paused","ssl.expiring","ssl.expired","ssl.chain_changed","domain.expiring","domain.expired","visual.changed","ct.certificate_issued","test"]},"default":["monitor.down","monitor.up"],"description":"Events to subscribe to. Free plan: limited to monitor.down, monitor.up, monitor.paused, test."}}}}}},"responses":{"201":{"description":"Webhook created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"secret":{"type":"string","description":"Full secret shown once — store securely"},"events":{"type":"array","items":{"type":"string"}},"is_active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta4"}}}}}},"400":{"description":"Invalid input"},"401":{"description":"Unauthorized"},"422":{"description":"Refused: webhook_limit_reached (the plan's number of webhooks), events_required (an empty event set) or event_not_in_plan (the free plan subscribes only to monitor.down, monitor.up, monitor.paused and test). A refused set is never replaced with another."}},"parameters":[{"name":"action","in":"query","required":false,"schema":{"type":"string","enum":["test"]},"description":"action=test&id=N sends a test event to webhook N instead of creating one."},{"name":"id","in":"query","required":false,"schema":{"type":"integer"},"description":"Webhook id — required when action=test."}]},"put":{"summary":"Update Webhook Subscription","operationId":"updateWebhook","tags":["Webhooks"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"},"description":"Webhook id."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"}},"is_active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated webhook"},"400":{"description":"Invalid input: invalid_events (an unknown event), invalid_is_active, no_changes"},"404":{"description":"Not found"},"422":{"description":"Refused: events_required (an empty event set), event_not_in_plan, or webhook_limit_reached (is_active=true while the plan's number of switched-on webhooks is used up)"}}},"delete":{"summary":"Delete Webhook Subscription","operationId":"deleteWebhook","tags":["Webhooks"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"},"description":"Webhook id."}],"responses":{"200":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/whois":{"get":{"operationId":"whois","summary":"Domain registration","description":"Domain registration. Runs the same code the tool page runs, so a result here and a result on the site cannot disagree.","tags":["Tools"],"x-source":"tool-bridge","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","description":"Language of refusals, notes and finding texts. Any other value is 400.","schema":{"type":"string","enum":["en","ru"],"default":"en"}}],"responses":{"200":{"description":"Domain registration","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object"}}}}}},"400":{"description":"The request is wrong: a malformed target, a missing parameter, an address this service does not check"},"401":{"description":"API key required"},"403":{"description":"Key lacks the \"dns\" scope"},"422":{"description":"The target could not be checked: the name does not resolve, the host refused the connection"},"429":{"description":"Rate limit or daily allowance reached"},"502":{"description":"A service asked on the caller's behalf did not answer (a WHOIS server, a zone registry, the geolocation lookup)"}}}}}}