LicenseGround Compliance Check API

The Compliance Check API from LicenseGround — 1 operation(s) for compliance check.

GitHub OpenAPI

Operations 1

POST /v1/compliance-check Check Compliance #

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/licenseground-com:licenseground-com-compliance-check-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

licenseground-com-compliance-check-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LicenseGround Compliance Check API
  description: Machine-readable regulatory ground truth and compliance verification for trade contractors in CA, FL, and TX.
  version: 1.0.0
tags:
- name: Compliance Check
paths:
  /v1/compliance-check:
    post:
      summary: Check Compliance
      description: 'Evaluate contractor against compliance rules (active license, workers comp, surety bond, citations).

        Returns instant deterministic boolean (can_hire), risk score, and risk flags.'
      operationId: check_compliance_v1_compliance_check_post
      parameters:
      - name: X-Agent-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Agent-Key
      - name: X-Agent-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Agent-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComplianceRiskQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceRiskResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Compliance Check
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ComplianceRiskQuery:
      properties:
        entity_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Name
        license_number:
          anyOf:
          - type: string
          - type: 'null'
          title: License Number
        state:
          $ref: '#/components/schemas/StateCode'
        trade:
          $ref: '#/components/schemas/TradeCategory'
          default: any
        require_active_status:
          type: boolean
          title: Require Active Status
          description: Enforce ACTIVE_CURRENT status.
          default: true
        require_workers_comp:
          type: boolean
          title: Require Workers Comp
          description: Reject if no verified workers comp policy (or unverified exemption).
          default: true
        require_surety_bond:
          type: boolean
          title: Require Surety Bond
          description: Enforce active contractor bond.
          default: true
        max_disciplinary_actions:
          type: integer
          title: Max Disciplinary Actions
          description: Maximum acceptable disciplinary citations.
          default: 0
        min_confidence_score:
          type: number
          title: Min Confidence Score
          description: Minimum entity name grounding match confidence.
          default: 0.85
      type: object
      required:
      - state
      title: ComplianceRiskQuery
      description: Input for automated policy assessment for autonomous hiring/procurement.
    DisciplinaryRecord:
      properties:
        case_number:
          anyOf:
          - type: string
          - type: 'null'
          title: Case Number
        action_type:
          type: string
          title: Action Type
          description: E.g., 'Citation', 'Formal Accusation', 'Administrative Fine', 'Suspension Order'
        effective_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective Date
        description:
          type: string
          title: Description
          description: Summary of board violation or sanctions
        penalty_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Penalty Amount
        resolved:
          type: boolean
          title: Resolved
          default: true
      type: object
      required:
      - action_type
      - description
      title: DisciplinaryRecord
      description: Detail of any disciplinary citations, suspensions, or formal administrative actions.
    ComplianceRiskResult:
      properties:
        can_hire:
          type: boolean
          title: Can Hire
          description: 'Deterministic decision: True if compliant with all risk criteria.'
        risk_level:
          $ref: '#/components/schemas/RiskLevel'
          description: LOW, MEDIUM, HIGH, or CRITICAL.
        risk_score:
          type: number
          maximum: 100.0
          minimum: 0.0
          title: Risk Score
          description: Risk index from 0.0 (safest) to 100.0 (maximum risk).
        flags:
          items:
            type: string
          type: array
          title: Flags
          description: Specific risk warning triggers.
        verification:
          $ref: '#/components/schemas/LicenseVerificationResult'
          description: Full underlying verification ground truth.
      type: object
      required:
      - can_hire
      - risk_level
      - risk_score
      - verification
      title: ComplianceRiskResult
      description: Instant machine-actionable hiring decision.
    TradeCategory:
      type: string
      enum:
      - roofing
      - hvac
      - electrical
      - plumbing
      - general_contractor
      - any
      title: TradeCategory
    RiskLevel:
      type: string
      enum:
      - LOW
      - MEDIUM
      - HIGH
      - CRITICAL
      title: RiskLevel
    LicenseStatus:
      type: string
      enum:
      - ACTIVE_CURRENT
      - INACTIVE
      - EXPIRED
      - SUSPENDED
      - REVOKED
      - PENDING
      - DELINQUENT
      - NOT_FOUND
      title: LicenseStatus
    LicenseVerificationResult:
      properties:
        verified:
          type: boolean
          title: Verified
          description: True if the entity possesses an authentic, matching registration on the official state registry.
        canonical_name:
          type: string
          title: Canonical Name
          description: Official legal business name registered with the state licensing board.
        dba_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Dba Name
          description: Registered Doing-Business-As (DBA) or fictitious business name if applicable.
        license_number:
          type: string
          title: License Number
          description: Official state license/certificate identifier.
        state:
          $ref: '#/components/schemas/StateCode'
          description: State code (CA, FL, TX).
        trade_classification:
          type: string
          title: Trade Classification
          description: State trade classification (e.g., 'C-39 Roofing', 'CCC Certified Roofing Contractor', 'TACLA HVAC').
        trade_category:
          $ref: '#/components/schemas/TradeCategory'
          description: Normalized trade category.
          default: any
        status:
          $ref: '#/components/schemas/LicenseStatus'
          description: Current operational license status.
        is_active:
          type: boolean
          title: Is Active
          description: 'Helper boolean: True only if status is ACTIVE_CURRENT.'
        disciplinary_actions:
          type: integer
          title: Disciplinary Actions
          description: Total count of historical or pending disciplinary actions/citations.
          default: 0
        disciplinary_records:
          items:
            $ref: '#/components/schemas/DisciplinaryRecord'
          type: array
          title: Disciplinary Records
          description: Detailed list of formal board actions, if any.
        issue_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Issue Date
          description: Date the license was originally issued (YYYY-MM-DD).
        expiration_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Expiration Date
          description: Expiration date of the current license cycle (YYYY-MM-DD).
        is_expired:
          type: boolean
          title: Is Expired
          description: True if expiration_date is in the past.
          default: false
        workers_comp_exempt:
          type: boolean
          title: Workers Comp Exempt
          description: True if the contractor filed an exemption claiming zero employees.
          default: false
        workers_comp_covered:
          type: boolean
          title: Workers Comp Covered
          description: True if active Workers' Compensation insurance policy is confirmed on file with the state board.
          default: false
        workers_comp_insurer:
          anyOf:
          - type: string
          - type: 'null'
          title: Workers Comp Insurer
          description: Name of workers' comp insurance carrier, policy number, or status note.
        bond_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Bond Status
          description: Contractor surety bond status (e.g. 'ACTIVE $25,000', 'EXEMPT', 'NOT_REQUIRED').
        bond_company:
          anyOf:
          - type: string
          - type: 'null'
          title: Bond Company
          description: Surety company underwriting the contractor bond.
        business_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Business Address
          description: Principal place of business on official record.
        city:
          anyOf:
          - type: string
          - type: 'null'
          title: City
        zip_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Zip Code
        phone:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone
        qualifying_agent:
          anyOf:
          - type: string
          - type: 'null'
          title: Qualifying Agent
          description: Licensed individual qualifier, master, or primary officer (e.g. Master Electrician or RMO/RME).
        grounding_confidence:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Grounding Confidence
          description: Confidence score (0.0 to 1.0) indicating exactness of entity name match against registry records.
        source_registry:
          type: string
          title: Source Registry
          description: Official source registry name (e.g. 'CA Contractors State License Board (CSLB)').
        source_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Url
          description: Direct URL to official state verification record.
        cached:
          type: boolean
          title: Cached
          description: True if served from low-latency persistent cache.
          default: false
        source_timestamp:
          type: string
          title: Source Timestamp
          description: ISO 8601 timestamp when data was fetched or grounded.
      type: object
      required:
      - verified
      - canonical_name
      - license_number
      - state
      - trade_classification
      - status
      - is_active
      - grounding_confidence
      - source_registry
      title: LicenseVerificationResult
      description: Machine-actionable, deterministic ground-truth verification result.
    StateCode:
      type: string
      enum:
      - CA
      - FL
      - TX
      - NY
      - MA
      - IL
      - AZ
      - US
      title: StateCode