CrawlCheck Preflight API

The Preflight API from CrawlCheck — 1 operation(s) for preflight.

GitHub OpenAPI

Operations 2

POST /api/v1/preflight/batch Batch preflight for answer engines (pfb1, X057): POST {domains: [up to 100… #
GET /api/v1/preflight The same decision as POST for a client that can only fetch a URL (an… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/crawlcheck-io:crawlcheck-io-preflight-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

crawlcheck-io-preflight-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Crawlcheck Io Preflight API
  version: '1'
  contact:
    name: CrawlCheck
    url: https://crawlcheck.io/policy
    email: hello@crawlcheck.io
  license:
    name: Terms
    url: https://crawlcheck.io/policy
  x-core-contract:
    promise: 'These operations are the core contract. They stay at /api/v1 and keep answering for at least 180 days after any /api/v2 is announced; their stable fields change only in a new major version, and their provisional fields only after 30 days'' notice, per /docs/api/compatibility. Verifying what they return needs none of these calls: crawlcheck-verify.mjs checks a document on your machine against the published keys (/.well-known/http-message-signatures-directory) and the rotation record, read once with --online or saved for --keys. Everything else documented here is useful but secondary, and may change with the notice its fields'' tags promise.'
    operations:
    - method: GET
      path: /api/v1/resolve
      operationId: resolveDomainV1
    - method: POST
      path: /api/v1/resolve
      operationId: resolveBatchV1
    - method: POST
      path: /api/v1/preflight
      operationId: preflightV1
    - method: GET
      path: /api/v1/decisions/{sha256}
      operationId: decisionCheckV1
    - method: GET
      path: /api/v1/revocations
      operationId: revocations
    - method: GET
      path: /api/v1/visitor
      operationId: visitorResolveV1
    - method: POST
      path: /api/v1/visitor
      operationId: visitorResolveBatchV1
    - method: GET
      path: /api/v1/mcp/scan
      operationId: mcpScanUrl
    - method: POST
      path: /api/v1/mcp/lock/check
      operationId: mcpLockCheck
    list: https://crawlcheck.io/api/v1/core
  description: 'Operations tagged Preflight across 2 of this provider''s published API definitions: crawlcheck-io-openapi.json, crawlcheck-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://crawlcheck.io
tags:
- name: Preflight
paths:
  /api/v1/preflight/batch:
    post:
      operationId: preflightBatchV1
      summary: 'Batch preflight for answer engines (pfb1, X057): POST {domains: [up to 100…'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domains
              properties:
                domains:
                  type: array
                  items:
                    type: string
                  maxItems: 100
                action:
                  enum:
                  - read
                  - cite
                  - connect
                  - transact
                  - administer
                agent:
                  type: string
                template:
                  type: string
                policy:
                  type: object
                policy_id:
                  type: string
                receipts:
                  enum:
                  - full
                  - compact
                rank:
                  type: boolean
            examples:
              worked:
                summary: The request behind the worked response
                value:
                  domains:
                  - exampletree.com
                  - exampletreepros.com
                  - example-directory.com
                  action: cite
                  agent: MyAnswerBot
      responses:
        '200':
          description: crawlcheck-preflight-batch (signed)
          content:
            application/json:
              examples:
                worked: {}
              schema:
                x-schema-source: worked-example
        '400':
          description: no domains, or more than 100
        '429':
          description: quota
      x-codeSamples:
      - lang: Shell
        label: curl
        source: 'curl -s -X POST ''https://crawlcheck.io/api/v1/preflight/batch'' -H ''content-type: application/json'' -d ''{"domains":["exampletree.com","exampletreepros.com","example-directory.com"],"action":"cite","agent":"MyAnswerBot"}'''
      security: []
      x-auth: public; no credential read
      x-crawlcheck-budget:
        request_body_max: 1048576
      tags:
      - Preflight
    servers:
    - url: https://crawlcheck.io
  /api/v1/preflight:
    get:
      operationId: preflightGetV1
      summary: The same decision as POST for a client that can only fetch a URL (an…
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: the bare domain you are about to act on
      - name: action
        in: query
        required: true
        schema:
          enum:
          - read
          - cite
          - connect
          - transact
          - administer
      - name: agent
        in: query
        schema:
          type: string
        description: your crawler token, e.g. ClaudeBot; when absent, the bot named in the User-Agent header is used
      - name: template
        in: query
        schema:
          type: string
      - name: nonce
        in: query
        schema:
          type: string
          pattern: ^[A-Za-z0-9._:-]{8,128}$
        description: signed back in the receipt
      responses:
        '200':
          description: crawlcheck-decision, signed (Ed25519, prefix crawlcheck-data-v1); verify offline with crawlcheck-verify.mjs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionV1'
              examples:
                worked:
                  summary: Captured from production on 2026-11-14; signature.canonical and the public JWK are trimmed (the kid names the key in /.well-known/http-message-signatures-directory). The same request as a POST body returns the same decision.
                  value:
                    kind: crawlcheck-decision
                    v: 1
                    decided_at: '2026-11-14T13:09:05.670Z'
                    expires_at: '2026-11-15T13:09:05.670Z'
                    clock_skew_s: 300
                    nonce: null
                    domain: example.com
                    action: read
                    agent: ClaudeBot
                    template: null
                    policy:
                      max_age_hours: null
                      on_warn: warn
                      require_entity: false
                      human_approval: []
                      allow: []
                      deny: []
                    policy_id: null
                    engine:
                      version: pf4
                      rules_sha256: 18dd5636e0896692ab518050cb401744edea2e6f1086dff94fead314959bdc3e
                    decision: warn
                    base_decision: warn
                    human_confirmation_required: false
                    reason_codes:
                    - resolve.actions.read
                    - doubt.no_policy
                    steps:
                    - rule: resolve.actions.read
                      effect: warn
                      why: no robots.txt policy was read, so permission is unknown
                      measured:
                        outcomes: 0
                        hit_rate: null
                    - rule: resolve.security
                      effect: none
                      why: 'ok: 0 of 6 standard security headers; no HSTS (browsers may load it over plain HTTP first); in place: certificate valid to 2026-12-25, DMARC reject, DNSSEC signed, domain registered 1995-08-14'
                    - rule: resolve.alive
                      effect: none
                      why: 'no sign the business has left this domain: registration current to 2027-08-13, homepage is a live site; the homepage answered 203 of 203 checks in the last 30 days (100%)'
                    - rule: resolve.control
                      effect: none
                      why: no owner has proven control of this domain with CrawlCheck yet
                    - rule: resolve.identity
                      effect: none
                      why: 'identity unknown: the site does not say which business it is'
                    - rule: facts.unread
                      effect: none
                      why: the site publishes no business name, phone, address or hours
                    alternatives: []
                    authority:
                      policy_source: crawlcheck_default
                      rules: CrawlCheck's published rules, engine pf4 (engine.rules_sha256)
                      tightened_by_policy: false
                      decides: This receipt is evidence and a recommendation under the policy named in policy_source. Whether the agent acts is decided by the deployment's own policy; a policy sent with the request can only tighten CrawlCheck's decision, never loosen it. CrawlCheck does not authorise the action, does not establish that a user consented, and does not attest how the action is carried out.
                    inputs:
                      security:
                        state: read
                        read_at: '2026-11-13T22:33:42.146Z'
                        https: true
                        status: 200
                        sec:
                          hsts: null
                          csp: null
                          xfo: null
                          nosniff: false
                          referrer: null
                          permissions: false
                          coop: null
                          cookies:
                            n: 0
                            no_secure: 0
                            no_httponly: 0
                            no_samesite: 0
                          version_leak: null
                          jquery: null
                          mixed: 0
                          third_party_scripts:
                            n: 0
                            hosts: 0
                            no_sri: 0
                          script_hosts: []
                          pp: null
                          cookie_list: []
                          forms: []
                          libs: []
                          headers_present: 0
                        dns:
                          spf:
                            records: 1
                            all: fail
                            lookups: 0
                          dmarc:
                            p: reject
                            pct: 100
                            rua: false
                          caa: false
                          mx: 0
                          dnssec: true
                          ops:
                            ns:
                            - hera.ns.cloudflare.com
                            - elliott.ns.cloudflare.com
                            mx: []
                            spf: []
                        reg:
                          rdap: true
                          registered: true
                          domain: example.com
                          registrar: RESERVED-Internet Assigned Numbers Authority
                          iana_id: '376'
                          created: '1995-08-14'
                          updated: '2026-08-14'
                          expires: '2027-08-13'
                          status:
                          - client delete prohibited
                          - client transfer prohibited
                          - client update prohibited
                          ns:
                          - elliott.ns.cloudflare.com
                          - hera.ns.cloudflare.com
                          ns_provider: Cloudflare
                          dnssec: true
                          registrant_redacted: true
                          age_days: 11414
                          expires_in_days: 272
                        net:
                          ip: 172.66.147.243
                          ips: 2
                          asn: 13335
                          as_name: CLOUDFLARENET - Cloudflare, Inc.
                          prefix: 172.66.144.0/20
                          cc: US
                        threat:
                          state: read
                          blocked: false
                          source: a public malware-blocking DNS resolver (malware and phishing threat intelligence)
                          detail: null
                        cert:
                          state: read
                          issued: 9
                          newest_expiry: '2026-12-25T22:56:35Z'
                          days_left: 42
                          san_orgs:
                          - example.edu
                          - example.net
                          - example.org
                        ops:
                          custom: []
                          weak:
                          - nsp:elliott.ns.cloudflare.com+hera.ns.cloudflare.com
                        parked: null
                        outbound:
                          hosts: 0
                          checked: 0
                          unread: 0
                          listed: []
                        redirects:
                          state: read
                          hops:
                          - url: http://example.com/
                            status: 200
                          final: http://example.com/
                          final_status: 200
                          ends_https: false
                          downgrade: false
                          plain_hops: 1
                          loop: false
                        pages: []
                        advisories:
                          state: read
                          source: OSV.dev (npm advisories)
                          read_at: '2026-11-13T22:33:42.339Z'
                          results: []
                        script_threat:
                          hosts: 0
                          checked: 0
                          unread: 0
                          listed: []
                        phones: []
                        photos:
                          images: 0
                          stock: []
                          originals: []
                        fp: null
                        ld_ids: []
                        changes:
                          first: false
                          since: '2026-11-12T20:58:12.512Z'
                          list: []
                          history: []
                        phone_rep: []
                        ftc: null
                        reputation_pending: phone-complaint and network reads were still running when this answer was given; they apply to the next one
                        verdict: ok
                        critical: []
                        weak:
                        - 0 of 6 standard security headers
                        - no HSTS (browsers may load it over plain HTTP first)
                        good:
                        - certificate valid to 2026-12-25
                        - DMARC reject
                        - DNSSEC signed
                        - domain registered 1995-08-14
                        threat_listed: false
                        copycat_network: null
                    accuracy:
                      window_days: 90
                      outcomes_scored: 1
                      this_decision:
                        outcomes: 0
                      per_rule: steps[].measured
                      source: https://crawlcheck.io/api/v1/decisions/accuracy
                      note: Measured from outcomes agents reported against receipts CrawlCheck issued; a block that stopped the agent leaves no outcome, so cautionary rates cover the agents that acted anyway.
                    facts:
                      state: none
                      why: the site publishes no business name, phone, address or hours
                      read_at: '2026-11-14T12:23:07.972Z'
                    alive:
                      read_at: '2026-11-13T22:33:42.146Z'
                      flags: []
                      registered: '1995-08-14'
                      expires: '2027-08-13'
                      uptime:
                        days_observed: 25
                        first_seen: '2026-10-17'
                        checks_30d: 203
                        answered_30d: 203
                        up_pct_30d: 100
                        down_days_now: 0
                        last_ok: '2026-11-13T22:33:42.715Z'
                        last_fail: null
                    evidence:
                      report: https://crawlcheck.io/r/5jpulavv9t
                      manifest_sha256: 491d8648c4641070fa17cf37689de1e32b37f266809dc094ef309b3535394d71
                    evidence_assurance:
                      v: 1
                      level: B
                      A:
                        name: record integrity
                        state: reached
                        how: this receipt is signed (signature.kid) and binds the resolve answer by resolve.sha256; that answer is in the public transparency log (resolve.leaf_hash). Check with the SDK's accepted field, not verified
                      B:
                        name: reproducible decision
                        state: reached
                        how: 'POST this receipt to https://crawlcheck.io/api/v1/preflight/replay: engine pf4 is re-run over the archived answer and the inputs carried here, at decided_at; the rule tables at https://crawlcheck.io/api/v1/preflight/rules hash to engine.rules_sha256'
                      C:
                        name: corroborated reading
                        state: not_reached
                        how: only CrawlCheck's own scanner has read this domain in the current window
                      limits: A says the record is unchanged and who signed it. B says the published rules give this decision again from the preserved inputs; it does not say the rules are well calibrated (see accuracy). C says an independent observer saw comparable content; it does not say every visitor gets the same content. None of them says the site is safe, that a user authorised the action, or that the action was carried out as assessed.
                    resolve:
                      sha256: 9d19b1e4f9adefb416d3d9a39f5e7a9f7dec6a128f2c7ea7801968d7abd2f6fa
                      kid: 1hHmE3fo1rg5Ig70wuFtJ5wBc7G-sUTgUJkxyPWFRps
                      leaf_hash: 81d61096cb087fba0fa133bbf9e0062420ec1a2de9cad111553219ae586c801e
                      archive: https://crawlcheck.io/api/v1/resolve/archive/9d19b1e4f9adefb416d3d9a39f5e7a9f7dec6a128f2c7ea7801968d7abd2f6fa
                      status: measured
                      answered_at: '2026-11-14T13:09:05.590Z'
                      observed_at: '2026-11-10T18:57:27.193Z'
                      report: https://crawlcheck.io/r/5jpulavv9t
                      served: precomputed
                    meaning: proceed only if your own policy accepts the stated doubt
                    reading: A signed decision receipt. It binds this decision to the resolve answer it was made from (resolve.sha256), the evidence manifest and the rule tables that decided it (engine.rules_sha256). Rely on it only until expires_at (allow clock_skew_s either side); after that, ask again. Send a nonce to bind the receipt to one request. Keep it with the action it authorised, report what happened to /api/v1/outcome with decision_sha256, and verify offline with crawlcheck-verify.mjs.
                    issued_at: '2026-11-14T13:09:05.670Z'
                    code:
                      build_id: a41e07c95d2b8f30
                      script_sha16: 2d0e5c90996cd48a
                      state: attested
                      deployed:
                        at: '2026-11-14T13:02:32.964Z'
                      build_log_entry: 2256
                      score_version: 43
                      scoring_policy_sha256: 4c73db640fab1a5e0599ba5e146b3ed35f8b100b00c7295aa8528f46b99d39ed
                      decision_rules_sha256: 18dd5636e0896692ab518050cb401744edea2e6f1086dff94fead314959bdc3e
                      check: https://crawlcheck.io/api/v1/builds/a41e07c95d2b8f30
                    sha256: a35229b2fdd6f4cb547966ded60c9e5c46dd331f76b8320bf7e1ffecb85a4e16
                    signature:
                      v: 1
                      alg: Ed25519
                      kid: NP5GewowKgJmU_ITSisKu-0ZFpvAL1ov86KDXIFmecw
                      over: sha256
                      message: 'crawlcheck-data-v1

                        a35229b2fdd6f4cb547966ded60c9e5c46dd331f76b8320bf7e1ffecb85a4e16'
                      sig: aRmc3mdf2cXmUnjW5qB-kLCmm-ip955vLb1ef8m8xdDWarMZXkbTnYwIwyZA-TL8wRjK3UJlwpr3FfIfitkqCg
                      signed_at: '2026-11-14T13:09:05.670Z'
                      key:
                        kid: NP5GewowKgJmU_ITSisKu-0ZFpvAL1ov86KDXIFmecw
                        published_in: https://crawlcheck.io/.well-known/http-message-signatures-directory
        '400':
          description: an IP literal or a private host
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: no domain, or an unknown action or template
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s 'https://crawlcheck.io/api/v1/preflight?domain=example.com&action=read&agent=ClaudeBot'
      security: []
      x-auth: public; no credential read
      description: The same decision as POST for a client that can only fetch a URL (an assistant’s fetch tool, a browser, curl with no body). Give the domain and the action in the query; the answer is the same signed decision receipt, made by the same code path, and is never cached. A policy needs POST
      tags:
      - Preflight
    servers:
    - url: https://crawlcheck.io
components:
  schemas:
    Error:
      type: object
      description: 'Every error answer is JSON carrying error (a message, or an object with code and message) or errors (a list of messages). Most also carry error_code (stable), retryable, trace_id, span_id and docs. Codes and rules: /spec/considerations.'
      anyOf:
      - required:
        - error
      - required:
        - errors
      properties:
        ok:
          type: boolean
        error:
          anyOf:
          - type: string
          - type: object
            properties:
              code:
                type: string
              message:
                type: string
              status:
                type: integer
        errors:
          type: array
          items: {}
        error_code:
          type: string
        retryable:
          type: boolean
        trace_id:
          type: string
        span_id:
          type: string
        docs:
          type: string
      additionalProperties: true
    DecisionV1:
      title: CrawlCheck decision (DecisionV1)
      type: object
      description: 'POST /api/v1/preflight: the policy engine''s signed answer to ''may this agent take this action on this domain under this policy''. Signed like a resolve answer (Ed25519, prefix crawlcheck-data-v1); resolve.sha256 binds it to the resolve answer it was decided from.'
      required:
      - kind
      - v
      - decided_at
      - domain
      - action
      - decision
      - base_decision
      - human_confirmation_required
      - reason_codes
      - steps
      - sha256
      - signature
      properties:
        kind:
          const: crawlcheck-decision
        v:
          const: 1
        decided_at:
          type: string
        expires_at:
          type:
          - string
          - 'null'
        clock_skew_s:
          type: integer
        nonce:
          type:
          - string
          - 'null'
        issued_at:
          type: string
        operation:
          type:
          - object
          - 'null'
        operation_sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
        domain:
          type: string
        action:
          enum:
          - read
          - cite
          - connect
          - transact
          - administer
        agent:
          type:
          - string
          - 'null'
        template:
          type:
          - string
          - 'null'
        policy:
          type: object
          properties:
            max_age_hours:
              type:
              - number
              - 'null'
            on_warn:
              enum:
              - warn
              - block
              - require_confirmation
              - allow
            require_entity:
              type: boolean
            human_approval:
              type: array
              items:
                type: string
            allow:
              type: array
              items:
                type: string
            deny:
              type: array
              items:
                type: string
        engine:
          type: object
          required:
          - version
          - rules_sha256
          properties:
            version:
              type: string
            rules_sha256:
              type: string
        decision:
          enum:
          - allow
          - warn
          - require_confirmation
          - block
          - unsupported
        base_decision:
          enum:
          - allow
          - warn
          - require_confirmation
          - block
          - unsupported
        human_confirmation_required:
          type: boolean
        reason_codes:
          type: array
          items:
            type: string
            pattern: ^[a-z_]+(\.[a-z_]+)*$
        steps:
          type: array
          items:
            type: object
            required:
            - rule
            - effect
            properties:
              rule:
                type: string
              effect:
                type: string
              why:
                type: string
              measured:
                type: object
                description: Outcomes reported against receipts where this rule fired with this effect, and its hit or held rate over 90 days
                properties:
                  outcomes:
                    type: integer
                  hit_rate:
                    type:
                    - number
                    - 'null'
                  held_rate:
                    type:
                    - number
                    - 'null'
        accuracy:
          type: object
          description: The measured accuracy of this decision kind and where the per-rule figures are
          properties:
            window_days:
              type: integer
            outcomes_scored:
              type: integer
            this_decision:
              type: object
            per_rule:
              type: string
            source:
              type: string
            note:
              type: string
        alternatives:
          type: array
        evidence:
          type:
          - object
          - 'null'
          properties:
            report:
              type: string
            manifest_sha256:
              type: string
        resolve:
          type:
          - object
          - 'null'
          properties:
            sha256:
              type: string
            kid:
              type: string
            leaf_hash:
              type: string
            archive:
              type: string
            status:
              enum:
              - measured
              - partial
              - not_measured
              - opted_out
              - withheld
            answered_at:
              type: string
            observed_at:
              type:
              - string
              - 'null'
            report:
              type: string
            served:
              type: string
        authority:
          type: object
          description: Which policy produced this decision, and that the deployment's own policy decides whether its agent acts
          properties:
            policy_source:
              type: string
              description: crawlcheck_default | caller_policy | template:<name> | policy_file:<id>
            rules:
              type: string
            tightened_by_policy:
              type: boolean
            decides:
              type: string
        inputs:
          type: object
          description: What the engine read beyond the signed resolve answer, carried so the decision can be replayed
          properties:
            security:
              type: object
            security_too_large:
              type: integer
        evidence_assurance:
          type: object
          description: Three separate levels. A record integrity, B reproducible decision (POST /api/v1/preflight/replay), C corroborated reading. level is the highest with every level under it reached
          properties:
            v:
              const: 1
            level:
              enum:
              - A
              - B
              - C
              - null
            A:
              type: object
            B:
              type: object
            C:
              type: object
            limits:
              type: string
        meaning:
          type: string
        reading:
          type: string
        sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
        signature:
          $ref: '#/components/schemas/SignatureV1'
    SignatureV1:
      type: object
      required:
      - v
      - alg
      - kid
      - over
      - message
      - sig
      - signed_at
      properties:
        v:
          const: 1
        alg:
          const: Ed25519
        kid:
          type: string
        over:
          type: string
        message:
          type: string
        sig:
          type: string
        signed_at:
          type: string
        key:
          type: object
          properties:
            kid:
              type: string
            jwk:
              type: object
            published_in:
              type: string
        canonical:
          type: string
  securitySchemes:
    licenceKey:
      type: apiKey
      in: header
      name: x-crawlcheck-key
      description: 'Your licence key: cc_ followed by 32 hex characters. Sent on every keyed call.'
    bearer:
      type: http
      scheme: bearer
      description: The same licence key as a Bearer token. Accepted on /api/v1/* and /api/usage.
externalDocs:
  url: https://crawlcheck.io/docs/api
  description: Human-readable reference
x-refined-from:
- crawlcheck-io-openapi.json
- crawlcheck-io-openapi.yml