TradesAPI Resolve API

The resolve API from TradesAPI — 1 operation(s) for resolve.

GitHub OpenAPI

Operations 1

POST /resolve Resolve a name to licensed contractors #

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/tradesapi-com:tradesapi-com-resolve-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

tradesapi-com-resolve-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trades Resolve API
  description: Real-time contractor license verification across all 50 US states + DC, plus 16 metro areas. Send a license number + state + trade, get back a normalized JSON result with status, expiration, and disciplinary history.
  version: 1.0.0
tags:
- name: Resolve
paths:
  /resolve:
    post:
      tags:
      - Resolve
      summary: Resolve a name to licensed contractors
      description: Match a business or individual name (optionally with state, zip, phone, or address hints) against the bulk-fed license database. Returns ranked candidates with per-field match evidence and a confidence tier. Works across jurisdictions when `state` is omitted. Costs 2 credits per call.
      operationId: resolve_name_resolve_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          type: string
          description: API key for authentication
          default: ''
          title: X-Api-Key
        description: API key for authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Payment Required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - ApiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        detail:
          anyOf:
          - type: string
          - type: 'null'
          title: Detail
      type: object
      required:
      - error
      title: ErrorResponse
    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
    LicenseResult:
      properties:
        valid:
          type: boolean
          title: Valid
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        license_number:
          type: string
          title: License Number
        trade:
          type: string
          title: Trade
        expiration:
          anyOf:
          - type: string
          - type: 'null'
          title: Expiration
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        status_normalized:
          anyOf:
          - type: string
          - type: 'null'
          title: Status Normalized
          description: 'Normalized status bucket across states: active | expired | suspended | revoked | probation | inactive | unknown. Null when the state''s mapping doesn''t cover this specific raw status. Raw `status` is always preserved.'
        state:
          type: string
          title: State
        disciplinary_actions:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Disciplinary Actions
        disciplinary_data_available:
          type: boolean
          title: Disciplinary Data Available
          description: True iff this jurisdiction is one where we extract board disciplinary/enforcement actions, or where the board publishes no case docket and a suspension/revocation status is itself the full public disciplinary record (status-derived, e.g. CT). When False, an empty `disciplinary_actions` means 'not collected for this jurisdiction', NOT a verified-clean record — so absence of data is never mistaken for absence of disciplinary history.
          default: false
        bond_info:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Bond Info
        insurance_info:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Insurance Info
        classifications:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Classifications
        source_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Url
        source_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Source Metadata
          description: 'Per-source / per-program tags for downstream parity-audit + ER disambiguation. Example: {''program'': ''dial_construction''} on Iowa DIAL Construction Contractor registrations distinguishes them from the EEB electrical and PMSB plumbing streams.'
        cached:
          type: boolean
          title: Cached
          default: false
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          description: 'Which read layer served this response: ''cache'' (Redis), ''db'' (license_current bulk feed), or ''scrape'' (live portal). Null on legacy paths predating the cut-over (e.g. sandbox).'
        last_verified_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Verified At
          description: Timestamp of the underlying observation. Equal to `checked_at` for fresh scrapes; older than `checked_at` when served from DB.
        staleness_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Staleness Seconds
          description: Age of the underlying observation in seconds. Zero for fresh scrapes; >0 when served from DB.
        sandbox:
          type: boolean
          title: Sandbox
          description: True iff this response came from the sandbox responder (sandbox-scoped API key). Sandbox responses are deterministic fixtures, not live data. Always false for production scrapes — clients can rely on this field to assert they're talking to the live API.
          default: false
        verification_type:
          anyOf:
          - type: string
            enum:
            - license
            - registration
          - type: 'null'
          title: Verification Type
          description: "Disambiguates the legal weight of a positive (`valid=true`) result:\n  - 'license' → competency license (the holder has met the state's exam / experience / continuing-ed bar for the trade).\n  - 'registration' → an administrative registration only. The holder has filed paperwork and (typically) carries insurance / a bond / workers'-comp coverage, but the state has NOT certified trade competency. Examples: PA HICPA Home Improvement Contractor registration, MT ERD Contractor Registration / ICEC.\n  - null → not specified by the upstream scraper. Treat as 'license' for backward compatibility (this is the default for the 40+ scrapers that pre-date the field, all of which surface true competency licenses)."
        license_class:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: License Class
          description: The issuer's exact classification term, e.g. 'Master Electrician'.
        facets:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Facets
          description: Normalized trade/role/scope facets from app.license_class_facets.
        credential_role:
          anyOf:
          - type: string
            enum:
            - standalone
            - qualifier
          - type: 'null'
          title: Credential Role
          description: Distinguishes a standalone operating license from an individual qualifier credential that requires linkage to a parent business license to be operationally valid. Today only IL 105* (Qualifying Party ROOFING CONTRACTOR) surfaces 'qualifier'; all other paths leave this null (treat as 'standalone' for backward compatibility).
        qualifier_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Qualifier Note
          description: Human-readable note when credential_role='qualifier' — explains the credential class and operational scope (e.g. requires linkage to a parent business license). Null for standalone licenses.
        checked_at:
          type: string
          format: date-time
          title: Checked At
        has_disciplinary_action:
          type: boolean
          title: Has Disciplinary Action
          description: 'Quick-check boolean: true iff disciplinary_actions is non-empty.


            Computed on every read/serialization so in-place mutation of

            disciplinary_actions after construction can never leave this field

            stale. Cannot be set by the caller — derived is the source of truth.'
          readOnly: true
      type: object
      required:
      - valid
      - license_number
      - trade
      - state
      - has_disciplinary_action
      title: LicenseResult
    ResolveResponse:
      properties:
        name:
          type: string
          title: Name
        jurisdiction:
          anyOf:
          - type: string
          - type: 'null'
          title: Jurisdiction
        total_candidates:
          type: integer
          title: Total Candidates
        candidates:
          items:
            $ref: '#/components/schemas/ResolveCandidate'
          type: array
          title: Candidates
        model_version:
          type: string
          title: Model Version
        checked_at:
          type: string
          format: date-time
          title: Checked At
      type: object
      required:
      - name
      - total_candidates
      - candidates
      - model_version
      title: ResolveResponse
    ResolveRequest:
      properties:
        name:
          type: string
          maxLength: 200
          minLength: 2
          title: Name
        state:
          anyOf:
          - type: string
            maxLength: 2
            minLength: 2
            pattern: ^[A-Za-z]{2}$
          - type: 'null'
          title: State
        city:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: City
        zip:
          anyOf:
          - type: string
            maxLength: 10
          - type: 'null'
          title: Zip
        phone:
          anyOf:
          - type: string
            maxLength: 30
          - type: 'null'
          title: Phone
        address:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Address
        limit:
          type: integer
          maximum: 20.0
          minimum: 1.0
          title: Limit
          default: 10
      type: object
      required:
      - name
      title: ResolveRequest
      description: 'POST /resolve body — a name-only (or name-plus-hints) record to

        match against `license_current` across jurisdictions.


        `state`/`city` narrow the search; when omitted the match runs

        cross-jurisdiction (the case live `/search` cannot serve). `phone`,

        `zip`, `address` are optional evidence that strengthens or weakens

        candidates via the comparison vector — they never filter on their own.'
    ResolveCandidate:
      properties:
        license:
          $ref: '#/components/schemas/LicenseResult'
        stable_entity_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Stable Entity Id
        match_weight:
          type: number
          title: Match Weight
        match_probability:
          type: number
          title: Match Probability
        tier:
          type: string
          title: Tier
        comparison_vector:
          additionalProperties: true
          type: object
          title: Comparison Vector
      type: object
      required:
      - license
      - match_weight
      - match_probability
      - tier
      - comparison_vector
      title: ResolveCandidate
      description: 'One ranked match: the license projected to the standard API shape

        plus the resolver''s evidence.'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authenticated endpoints. Sign up at /auth/login to get one. Every successful verification consumes one credit.