Pie Insurance ClassCodeSearch API

The ClassCodeSearch API from Pie Insurance — 1 operation(s) for classcodesearch.

Operations 1

POST /ClassCodeSearch

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/pie-insurance-classcodesearch-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

pie-insurance-classcodesearch-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pie Insurance Quote Api Appetite Class Code Search API
  version: v1
servers:
- url: https://api.post-prod.pieinsurance.com/api/v1
security:
- bearer: []
tags:
- name: ClassCodeSearch
paths:
  /ClassCodeSearch:
    post:
      tags:
      - ClassCodeSearch
      summary: ''
      requestBody:
        description: ClassCodeSearchRequest
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example:
              state: CO
              searchTerm: janitor
              businessName: Subway
          application/json:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example:
              state: CO
              searchTerm: janitor
              businessName: Subway
          text/json:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example:
              state: CO
              searchTerm: janitor
              businessName: Subway
          application/*+json:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example:
              state: CO
              searchTerm: janitor
              businessName: Subway
          application/xml:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example: "<ClassCodeSearchRequest xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n  <State>CO</State>\n  <SearchTerm>janitor</SearchTerm>\n  <BusinessName>Subway</BusinessName>\n</ClassCodeSearchRequest>"
          text/xml:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example: "<ClassCodeSearchRequest xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n  <State>CO</State>\n  <SearchTerm>janitor</SearchTerm>\n  <BusinessName>Subway</BusinessName>\n</ClassCodeSearchRequest>"
          application/*+xml:
            schema:
              $ref: '#/components/schemas/ClassCodeSearchRequest'
            example: "<ClassCodeSearchRequest xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n  <State>CO</State>\n  <SearchTerm>janitor</SearchTerm>\n  <BusinessName>Subway</BusinessName>\n</ClassCodeSearchRequest>"
      responses:
        '500':
          description: Internal error, would like be legitimate error that we should fix
        '501':
          description: Not Implemented
        '502':
          description: Bad Gateway - usually a startup/load balance issue
        '503':
          description: Service unavailable - usually a startup/deploy issue
        '504':
          description: Gateway timeout - usually a startup/load balance issue
        '505':
          description: HTTP Version Not Supported
        '200':
          description: Ok - List of matches
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClassCodeMatch'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClassCodeMatch'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClassCodeMatch'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClassCodeMatch'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClassCodeMatch'
        '400':
          description: Bad request - usually malformed message or header
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ClassCodeSearchBadRequest'
            application/json:
              schema:
                $ref: '#/components/schemas/ClassCodeSearchBadRequest'
            text/json:
              schema:
                $ref: '#/components/schemas/ClassCodeSearchBadRequest'
            application/xml:
              schema:
                $ref: '#/components/schemas/ClassCodeSearchBadRequest'
            text/xml:
              schema:
                $ref: '#/components/schemas/ClassCodeSearchBadRequest'
        '404':
          description: Could not find any matches.
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/xml:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/xml:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '415':
          description: Unsupported Media Type
      security:
      - bearer: []
components:
  schemas:
    ClassCodeMatch:
      type: object
      properties:
        value:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        matches:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    ClassCodeSearchRequest:
      required:
      - state
      type: object
      properties:
        state:
          type: string
          description: State must be abbreviated. ie. CO
        searchTerm:
          type:
          - string
          - 'null'
          description: Search term must be at least two characters.
        businessName:
          type:
          - string
          - 'null'
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
        extensions:
          type:
          - object
          - 'null'
          additionalProperties: {}
      additionalProperties: false
    ClassCodeSearchBadRequest:
      type: object
      properties:
        validationErrors:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      description: JWT Authorization header using the Bearer scheme. Enter token
      scheme: Bearer