> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search contractors

> Start here to find a contractor and the `license_id` of each of its licenses; then call get_license for the full record, bonds and complaints.

## Request contract

* **Method and path:** POST /apis/v1/azroc-my-site-com/licenses/search-contractors
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/azroc-my-site-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "azroc-my-site-com.licenses.search-contractors",
  "method": "POST",
  "path": "/apis/v1/azroc-my-site-com/licenses/search-contractors",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "query": "Sunstate Plumbing"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "city": {
              "description": "Arizona city of the licensee (e.g. 'Flagstaff').",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "classifications": {
              "description": "License classifications to filter by, spelled as list_classifications returns them (e.g. 'C-37 Plumbing').",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "cursor": {
              "description": "`next_cursor` of the previous page (an offset into the same search).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 25,
              "description": "Accounts per page (client-side paging over the full server result).\n\nProvider reference: minimum 1; maximum 100; default 25.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "query": {
              "description": "Business name, person name ('First Last') or ROC license number ('084810' or 'ROC 084810'). Optional when classifications or city is given.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/azroc-my-site-com.json POST /apis/v1/azroc-my-site-com/licenses/search-contractors
openapi: 3.1.0
info:
  description: ''
  title: Arizona Registrar of Contractors license register (azroc.my.site.com)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    azroc-my-site-com:
      description: ''
      title: Arizona Registrar of Contractors license register (azroc.my.site.com)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 8243ee94d24ff719345954a9e89396a85b08c852aa8ed440ec9cac579b7a80c2
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/azroc-my-site-com/licenses/get-classification-description
    - /apis/v1/azroc-my-site-com/licenses/get-license
    - /apis/v1/azroc-my-site-com/licenses/list-classifications
    - /apis/v1/azroc-my-site-com/licenses/search-contractors
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:d04e14c0e14718d8e6f3dadeec68bd4ee99f1d83fd2a798dad5a49d69266d1dd
    facts_hash: 8243ee94d24ff719345954a9e89396a85b08c852aa8ed440ec9cac579b7a80c2
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: azroc-my-site-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/azroc-my-site-com/licenses/search-contractors:
    post:
      tags:
        - Arizona Registrar of Contractors license register (azroc.my.site.com)
      summary: Search contractors
      description: >-
        Start here to find a contractor and the `license_id` of each of its
        licenses; then call get_license for the full record, bonds and
        complaints.
      operationId: azroc-my-site-com.licenses.search-contractors
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: Sunstate Plumbing
            schema:
              additionalProperties: true
              properties:
                city:
                  description: Arizona city of the licensee (e.g. 'Flagstaff').
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                classifications:
                  description: >-
                    License classifications to filter by, spelled as
                    list_classifications returns them (e.g. 'C-37 Plumbing').
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                cursor:
                  description: >-
                    `next_cursor` of the previous page (an offset into the same
                    search).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 25
                  description: >-
                    Accounts per page (client-side paging over the full server
                    result).


                    Provider reference: minimum 1; maximum 100; default 25.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                query:
                  description: >-
                    Business name, person name ('First Last') or ROC license
                    number ('084810' or 'ROC 084810'). Optional when
                    classifications or city is given.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-04.
                  summary: Official provider example
                  value:
                    accounts:
                      - account_id: 001t000000MIrY7AAL
                        address: Peoria, AZ, 85345
                        contacts:
                          - name: Bonnie Wilson
                            role: Officer
                          - name: Thomas Earl Wilson Jr
                            role: Officer
                        dba_name: null
                        licenses:
                          - classification: C-37 Plumbing
                            license_id: a0ot0000000NcO3AAK
                            license_number: ROC 084810
                            qp_exempt: true
                            qualifying_party: null
                            source_url: >-
                              https://azroc.my.site.com/AZRoc/s/contractor-search?licenseId=a0ot0000000NcO3AAK
                            status: Active
                          - classification: R-37 Plumbing, Including Solar
                            license_id: a0ot0000000NrpMAAS
                            license_number: ROC 091700
                            qp_exempt: true
                            qualifying_party: null
                            source_url: >-
                              https://azroc.my.site.com/AZRoc/s/contractor-search?licenseId=a0ot0000000NrpMAAS
                            status: Active
                        name: Sunstate Plumbing Inc
                        phone: (623) 937-4258
                    city: null
                    classifications: null
                    next_cursor: null
                    observed_at_ms: 1791150386336
                    offset: 0
                    query: Sunstate Plumbing
                    source_url: https://azroc.my.site.com/AZRoc/s/contractor-search
                    total_accounts: 1
                    total_licenses: 2
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the Arizona ROC contractor register (Aura action
            ARCP_ContractorSearch.getRecords, the site's 'Contractor Search').
            `query` matches a business name, a person's name ('First Last'), or
            a ROC license number (6 digits, with or without the 'ROC ' prefix);
            `classifications` filters by license classification exactly as
            `list_classifications` spells them (e.g. 'C-42 Roofing'; the site
            matches the classification family loosely, a 'C-42 Roofing' filter
            also returns 'CR-42 Roofing' licenses); `city` filters by the
            licensee's Arizona city. At least one criterion is required. Results
            are grouped the way the site shows them: one row per
            business/account with its contacts (name and role) and every license
            it holds (license_id, ROC license number, status such as Active /
            Suspended / Revoked / Expired, classification, qualifying party or
            QP-exempt). The server returns the whole result set in one answer (a
            broad single-word query can be several hundred accounts and take a
            few seconds); this function pages through it client-side with
            `page_size` rows per page and an offset `cursor`, re-running the
            same search for each page. A search that matches nothing is a valid
            empty result (`accounts: []`).


            The response contains the tool result directly.


            The provider identifies `accounts` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `account_id` | string | Salesforce Account id of the business
            (001...). |

            | `address` | string | 'City, AZ, ZIP' as shown; the register does
            not publish street addresses. |

            | `contacts` | object[] |  |

            | `dba_name` | string | 'Doing business as' label exactly as the
            site shows it (e.g. 'DBA : 928 Roofing'); null when the site sends
            none. |

            | `licenses` | object[] |  |

            | `name` | string |  |

            | `phone` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.