curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-classification-description \
--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-classification-description"
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-classification-description', 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-classification-description",
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-classification-description"
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-classification-description")
.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-classification-description")
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_bodyGet classification description
After search_contractors or get_license, to explain what work a license’s classification permits.
curl --request POST \
--url https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-classification-description \
--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-classification-description"
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-classification-description', 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-classification-description",
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-classification-description"
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-classification-description")
.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-classification-description")
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_bodyRequest contract
- Method and path: POST /apis/v1/azroc-my-site-com/licenses/get-classification-description
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/azroc-my-site-com/licenses/get-classification-description
{
"operationId": "azroc-my-site-com.licenses.get-classification-description",
"method": "POST",
"path": "/apis/v1/azroc-my-site-com/licenses/get-classification-description",
"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) 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
The official scope description of a license's classification (Aura action ARCP_ContractorSearch.getLicenseDescriptionDetail, the detail page's 'License Classification Description' panel): for the license's classification, the license type (e.g. 'Specialty Commercial'), the classification (e.g. 'C-37 Plumbing') and the Registrar's description of the work it covers, as plain text (paragraph breaks preserved) and as the site's HTML. Keyed by the Salesforce license_id from search_contractors. An unknown license_id is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
classifications | object[] | |
license_id | string | |
observed_at_ms | number | |
source_url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.