HashDit Domain Security API

The Domain Security API from HashDit — 1 operation(s) for domain security.

GitHub OpenAPI

Operations 1

POST /v2/hashdit/domain-security Domain Security #

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/hashdit:hashdit-domain-security-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

hashdit-domain-security-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HashDit Domain Security API
  description: HashDit threat intelligence API for domain security analysis, blockchain address classification, address poisoning detection, address security assessment, transaction security, token security, Solana token security, token approval security, and EIP-712 signature security
  version: 2.0.0
servers:
- url: https://service.hashdit.io
tags:
- name: Domain Security
paths:
  /v2/hashdit/domain-security:
    post:
      summary: Domain Security
      description: Scores a domain or URL against HashDit threat intelligence. Set `liveness_check` to also report whether a visitor would see usable content; choose `liveness_policy` to control how blocked checks are interpreted without changing the risk verdict.
      operationId: domainSecurity
      requestBody:
        description: Domain or URL to analyze
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainSecurityRequest'
            examples:
              Whitelisted Domain:
                summary: Risk score only
                value:
                  url: https://pancakeswap.finance/
              Risky Domain:
                summary: Suspicious domain example
                value:
                  url: https://bnb-miner.com/
              Liveness Check:
                summary: Availability check with usable content
                value:
                  url: https://example.com
                  liveness_check: true
                  liveness_policy: lenient
              Bot Protection (lenient):
                summary: Bot wall HTTP 403, read as accessible
                value:
                  url: https://example.com
                  liveness_check: true
                  liveness_policy: lenient
              Bot Protection (strict):
                summary: Bot wall HTTP 403, read as not accessible
                value:
                  url: https://example.com
                  liveness_check: true
                  liveness_policy: strict
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainSecurityResponse'
              examples:
                Whitelisted Domain:
                  summary: Safe domain response
                  value:
                    code: '0'
                    status: ok
                    data:
                      request_id: 85cb060e-75cf-4d75-887f-c23f2fc45106
                      has_result: true
                      polling_interval: 0
                      risk_level: 0
                      risk_name: Trusted
                      risk_detail:
                      - name: is_in_wlist
                        value: The dApp is relatively safe based on the threat intelligence.
                Risky Domain:
                  summary: Risky domain response
                  value:
                    code: '0'
                    status: ok
                    data:
                      request_id: 92db171f-86dg-5e86-998g-d34g3gd56217
                      has_result: true
                      polling_interval: 0
                      risk_level: 3
                      risk_name: Medium Risk
                      risk_detail:
                      - name: is_in_blist
                        value: There are potential risks in the dApp based on the threat intelligence.
                Liveness Check:
                  summary: Availability check with usable content
                  value:
                    code: '0'
                    status: ok
                    data:
                      request_id: 85cb060e-75cf-4d75-887f-c23f2fc45106
                      has_result: true
                      polling_interval: 0
                      risk_level: 1
                      risk_name: No Obvious Risk
                      risk_detail: []
                      liveness: alive
                      liveness_detail:
                        status: accessible
                        policy: lenient
                        http_status: 200
                        last_scanned_at: '2026-09-18T00:22:44.435844'
                Bot Protection (lenient):
                  summary: 'Bot wall: HTTP 403 with accessible liveness'
                  value:
                    code: '0'
                    status: ok
                    data:
                      request_id: 85cb060e-75cf-4d75-887f-c23f2fc45106
                      has_result: true
                      polling_interval: 0
                      risk_level: 1
                      risk_name: No Obvious Risk
                      risk_detail: []
                      liveness: alive
                      liveness_detail:
                        status: accessible
                        policy: lenient
                        http_status: 403
                        last_scanned_at: '2026-09-18T00:22:44.435844'
                Bot Protection (strict):
                  summary: 'Bot wall: HTTP 403 with not_accessible liveness'
                  value:
                    code: '0'
                    status: ok
                    data:
                      request_id: 85cb060e-75cf-4d75-887f-c23f2fc45106
                      has_result: true
                      polling_interval: 0
                      risk_level: 1
                      risk_name: No Obvious Risk
                      risk_detail: []
                      liveness: dead
                      liveness_detail:
                        status: not_accessible
                        policy: strict
                        http_status: 403
                        last_scanned_at: '2026-09-18T00:22:44.435844'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
      - apiKeyAuth: []
      tags:
      - Domain Security
components:
  responses:
    BadRequest:
      description: Bad request — malformed or missing field, unsupported chain, or invalid address. `detail` names the field that was rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CurrentServiceError'
          examples:
            Invalid request:
              summary: Malformed or missing field
              value:
                code: '-1'
                status: invalid request
                detail: …
            Unsupported chain:
              summary: Chain not enabled for this endpoint
              value:
                code: '-1'
                status: unsupported chain
                detail: 'unsupported chainId: 137'
            Invalid address:
              summary: Address fails the format check for that chain
              value:
                code: '-1'
                status: invalid address
                detail: …
    Forbidden:
      description: Missing or invalid `X-API-KEY`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CurrentServiceError'
          examples:
            Invalid API key:
              summary: Invalid API key
              value:
                code: '403'
                status: error
                detail: Invalid API key
    InternalServerError:
      description: Server-side failure
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CurrentServiceError'
          examples:
            Internal server error:
              summary: Internal server error
              value:
                code: '-2'
                status: internal server error
                detail: internal server error
    RateLimitExceeded:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitExceededErrorResponse'
          examples:
            Rate limit exceeded:
              summary: Rate limit exceeded error
              value:
                code: '429'
                status: error
                message: Rate limit exceeded
    UnprocessableEntity:
      description: Schema validation failed. `detail` names the failing field path.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CurrentServiceError'
          examples:
            Field required:
              summary: Schema validation
              value:
                code: '-1'
                status: invalid request
                detail: 'chainId: field required'
            Field path:
              summary: detail names the failing field path
              value:
                code: '-1'
                status: invalid request
                detail: evm_transactions[0].from
    Unauthorized:
      description: Missing or invalid `X-API-KEY`. This is the response customers see on current-service endpoints.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MissingAPIKeyErrorResponse'
          examples:
            Missing API key:
              summary: Missing or invalid API key
              value:
                code: '401'
                status: Missing API key
                detail: Missing API key
  schemas:
    DomainSecurityRequest:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          description: The domain or URL to analyze. A scheme, path and query string are accepted and normalized.
          example: https://pancakeswap.finance/
        liveness_check:
          type: boolean
          default: false
          description: When `true`, also report whether a visitor opening this URL would see usable content. Adds latency. A healthy server answering a request is not sufficient. Also accepts `liveness_check`.
        liveness_policy:
          type: string
          enum:
          - lenient
          - strict
          - evidence
          default: lenient
          description: 'How to resolve the case where the check was blocked and cannot tell whether a visitor would have been. Only meaningful when `liveness_check` is `true`. Any other value is rejected with HTTP 422. Also accepts `liveness_policy`. Switching policy never changes `risk_level`.


            - `lenient` (default) — blocked check is `accessible`. Use when warning users: a site that only blocks automation still works for the person about to click it.

            - `strict` — blocked check is `not_accessible`. Use when vetting a submitted site; expect some manual review.

            - `evidence` — returns no verdict; `status` is `null` and you decide from `http_status`'
    RateLimitExceededErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: '`429`'
          example: '429'
        status:
          type: string
          description: '`error`'
          example: error
        message:
          type: string
          description: Rate limit exceeded
          example: Rate limit exceeded
      required:
      - code
      - status
    DomainSecurityResponse:
      type: object
      properties:
        code:
          type: string
          description: API status code. "0" indicates success.
          example: '0'
        status:
          type: string
          description: Request status (ok or error).
          example: ok
        data:
          $ref: '#/components/schemas/DomainSecurityData'
      required:
      - code
      - status
      - data
    DomainSecurityData:
      type: object
      properties:
        request_id:
          type: string
          description: Unique identifier for this request. Quote it in support requests.
          example: 85cb060e-75cf-4d75-887f-c23f2fc45106
        has_result:
          type: boolean
          description: Whether the analysis was immediately available.
          example: true
        polling_interval:
          type: number
          description: Seconds to wait before retrying when `has_result` is `false`. `0` when not applicable.
          example: 0
        risk_level:
          type: number
          description: '`-1`, or `0`–`5`. Higher is riskier. `-1` means no verdict could be formed.'
          minimum: -1
          maximum: 5
          example: 0
        risk_name:
          type: string
          description: 'Human-readable name for `risk_level`.


            - `-1` — `Unknown`

            - `0` — `Trusted`

            - `1` — `No Obvious Risk`

            - `2` — `Low Risk`

            - `3` — `Medium Risk`

            - `4` — `High Risk`

            - `5` — `Significant Risk`'
          example: Medium Risk
        risk_detail:
          type: array
          description: Indicators behind the score. Empty when none matched.
          items:
            $ref: '#/components/schemas/RiskDetail'
        liveness:
          type: string
          enum:
          - alive
          - dead
          - unknown
          description: 'Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative. Maps from `liveness_detail.status`: `accessible` → `alive`, `not_accessible` → `dead`, and `unknown` when the result could not be determined or `liveness_policy` is `evidence`.'
        liveness_detail:
          allOf:
          - $ref: '#/components/schemas/LivenessDetail'
          description: Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative.
    MissingAPIKeyErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: '`401`'
          example: '401'
        status:
          type: string
          description: Missing API key
          example: Missing API key
        detail:
          type: string
          description: Missing API key
          example: Missing API key
      required:
      - code
      - status
      - detail
    CurrentServiceError:
      type: object
      properties:
        code:
          type: string
          description: Error code. Typically `-1` for client errors, `-2` for server errors, or `401` / `429` for auth and rate limits.
        status:
          type: string
          description: Short error status string.
        detail:
          type: string
          description: Human-readable explanation of the error. Names the field that was rejected when the request is invalid.
      required:
      - code
      - status
    RiskDetail:
      type: object
      properties:
        name:
          type: string
          description: 'Risk category identifier.


            - `is_in_wlist` — whitelist

            - `is_in_blist` — blacklist

            - `is_in_mlist` — monitoring list

            - `red_alarm` — high-severity override'
          enum:
          - is_in_wlist
          - is_in_blist
          - is_in_mlist
          - red_alarm
        value:
          type: string
          description: Human-readable explanation of the indicator.
    LivenessDetail:
      type: object
      description: Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative.
      properties:
        status:
          type:
          - string
          - 'null'
          enum:
          - accessible
          - not_accessible
          - null
          description: '`accessible` or `not_accessible`. `null` under `liveness_policy: "evidence"`.'
        policy:
          type: string
          enum:
          - lenient
          - strict
          - evidence
          description: Echo of the policy applied.
        http_status:
          type:
          - integer
          - 'null'
          description: The status code the site returned. `null` when the check did not reach an HTTP response.
        last_scanned_at:
          type:
          - string
          - 'null'
          description: When the check ran — not when this response was generated. ISO 8601, UTC, microsecond precision, no timezone suffix.
          example: '2026-09-18T00:22:44.435844'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY