curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"license_id": "a0ot0000000NcO3AAK"
}
'import requests
url = "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license"
payload = { "license_id": "a0ot0000000NcO3AAK" }
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({license_id: 'a0ot0000000NcO3AAK'})
};
fetch('https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license', 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/get-license",
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([
'license_id' => 'a0ot0000000NcO3AAK'
]),
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/get-license"
payload := strings.NewReader("{\n \"license_id\": \"a0ot0000000NcO3AAK\"\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/get-license")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"license_id\": \"a0ot0000000NcO3AAK\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license")
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 \"license_id\": \"a0ot0000000NcO3AAK\"\n}"
response = http.request(request)
puts response.read_body{
"address": "Peoria, AZ, 85345",
"bonds": [
{
"allotted_amount": 25000,
"available_amount": 25000,
"bond_amount": 0,
"bond_number": "BD408130",
"cancellation_date": null,
"effective_date": "2014-11-05",
"record": "CBND.BD408130",
"status": "Active",
"surety": "Nationwide",
"total_payout": 0,
"total_repayment": 0,
"type": "Surety"
}
],
"business_name": "Sunstate Plumbing Inc",
"classification_description": "Specialty Commercial C-37 Plumbing",
"complaints": {
"disciplined_count": 0,
"items": [],
"open_count": 0,
"resolved_count": 0
},
"dba_name": null,
"entity_type": "Corporation",
"issued_date": "1989-11-24",
"license_id": "a0ot0000000NcO3AAK",
"license_number": "ROC 084810",
"observed_at_ms": 1791150392112,
"personnel": [
{
"name": "Bonnie Wilson",
"other_positions": "OFFICER",
"record": "ACX-00776620",
"title": "Officer"
},
{
"name": "Thomas Earl Wilson Jr",
"other_positions": "OFFICER",
"record": "ACX-00874841",
"title": "Officer"
}
],
"phone": "(623) 937-4258",
"qp_exempt": true,
"renewal_through": "2026-10-31",
"source_url": "https://azroc.my.site.com/AZRoc/s/contractor-search?licenseId=a0ot0000000NcO3AAK",
"status": "Active",
"status_changed_date": "2018-10-17"
}Get license
After search_contractors, with a license’s license_id, to verify status, bonding and complaint history.
curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"license_id": "a0ot0000000NcO3AAK"
}
'import requests
url = "https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license"
payload = { "license_id": "a0ot0000000NcO3AAK" }
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({license_id: 'a0ot0000000NcO3AAK'})
};
fetch('https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license', 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/get-license",
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([
'license_id' => 'a0ot0000000NcO3AAK'
]),
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/get-license"
payload := strings.NewReader("{\n \"license_id\": \"a0ot0000000NcO3AAK\"\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/get-license")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"license_id\": \"a0ot0000000NcO3AAK\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license")
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 \"license_id\": \"a0ot0000000NcO3AAK\"\n}"
response = http.request(request)
puts response.read_body{
"address": "Peoria, AZ, 85345",
"bonds": [
{
"allotted_amount": 25000,
"available_amount": 25000,
"bond_amount": 0,
"bond_number": "BD408130",
"cancellation_date": null,
"effective_date": "2014-11-05",
"record": "CBND.BD408130",
"status": "Active",
"surety": "Nationwide",
"total_payout": 0,
"total_repayment": 0,
"type": "Surety"
}
],
"business_name": "Sunstate Plumbing Inc",
"classification_description": "Specialty Commercial C-37 Plumbing",
"complaints": {
"disciplined_count": 0,
"items": [],
"open_count": 0,
"resolved_count": 0
},
"dba_name": null,
"entity_type": "Corporation",
"issued_date": "1989-11-24",
"license_id": "a0ot0000000NcO3AAK",
"license_number": "ROC 084810",
"observed_at_ms": 1791150392112,
"personnel": [
{
"name": "Bonnie Wilson",
"other_positions": "OFFICER",
"record": "ACX-00776620",
"title": "Officer"
},
{
"name": "Thomas Earl Wilson Jr",
"other_positions": "OFFICER",
"record": "ACX-00874841",
"title": "Officer"
}
],
"phone": "(623) 937-4258",
"qp_exempt": true,
"renewal_through": "2026-10-31",
"source_url": "https://azroc.my.site.com/AZRoc/s/contractor-search?licenseId=a0ot0000000NcO3AAK",
"status": "Active",
"status_changed_date": "2018-10-17"
}Request contract
- Method and path: POST /apis/v1/azroc-my-site-com/licenses/get-license
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-license
{
"operationId": "azroc-my-site-com.licenses.get-license",
"method": "POST",
"path": "/apis/v1/azroc-my-site-com/licenses/get-license",
"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": {
"license_id": "a0ot0000000NcO3AAK"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"license_id": {
"description": "Salesforce License__c id (15 or 18 characters, e.g. a0ot0000000NcO3AAK) from search_contractors, or the detail page URL carrying ?licenseId=.",
"type": "string"
}
},
"required": [
"license_id"
],
"type": "object"
}
}
},
"required": true
},
"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
One ROC license record (Aura actions ARCP_ContractorSearch.getLicenseDetail + getAllPersonnelDetail + getAllBondDetail + getAllComplaintsDetail, sent as one batch; the site's contractor detail page). Keyed by the Salesforce license_id from search_contractors (a pasted detail URL .../contractor-search?licenseId=... is accepted). Returns the license (ROC number, status and status-change date, issue date, renewal-through date, classification description, entity type, QP exemption, business and DBA names, city/state/ZIP, phone), the personnel on file (name, title, other positions), the surety bonds (number, type, status, effective and cancellation dates, bond, allotted, available, payout and repayment amounts in USD, surety company) and the public complaint summary (open, resolved and disciplined counts) with each complaint's number, status, nature, type, allegations, outcome, closed date and jobsite city. Complainant identities are not returned. An unknown license_id makes the site answer an Apex System.QueryException; that is reported as not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
address | string | 'City, AZ, ZIP' with the site's HTML wrapper removed. |
bonds | object[] | |
business_name | string | |
classification_description | string | License type and classification, e.g. 'Specialty Commercial C-37 Plumbing'. |
complaints | object | |
dba_name | string | |
entity_type | string | |
issued_date | string | |
license_id | string | |
license_number | string | e.g. 'ROC 084810' |
observed_at_ms | number | |
personnel | object[] | |
phone | string | |
qp_exempt | boolean | |
renewal_through | string | Date the current renewal runs through (the site's renewalThr). |
source_url | string | |
status | string | |
status_changed_date | string | ISO date (YYYY-MM-DD) as the site sends it. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.