curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Sunstate Plumbing"
}
'import requests
url = "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors"
payload = { "query": "Sunstate Plumbing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Sunstate Plumbing'})
};
fetch('https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Sunstate Plumbing'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors"
payload := strings.NewReader("{\n \"query\": \"Sunstate Plumbing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Sunstate Plumbing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Sunstate Plumbing\"\n}"
response = http.request(request)
puts response.read_body{
"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
}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.
curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Sunstate Plumbing"
}
'import requests
url = "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors"
payload = { "query": "Sunstate Plumbing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Sunstate Plumbing'})
};
fetch('https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Sunstate Plumbing'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors"
payload := strings.NewReader("{\n \"query\": \"Sunstate Plumbing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Sunstate Plumbing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/search-contractors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Sunstate Plumbing\"\n}"
response = http.request(request)
puts response.read_body{
"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
}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
{
"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.Authorizations
Body
Response
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.