curl --request POST \
--url https://api.baselayer.com/naics_prediction_requests \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"address": "<string>",
"alternative_names": [
"<string>"
],
"officer_names": [
"<string>"
],
"website": "<string>",
"phone_number": "<string>",
"email": "<string>",
"reference_id": "<string>"
}
'import requests
url = "https://api.baselayer.com/naics_prediction_requests"
payload = {
"name": "<string>",
"address": "<string>",
"alternative_names": ["<string>"],
"officer_names": ["<string>"],
"website": "<string>",
"phone_number": "<string>",
"email": "<string>",
"reference_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
address: '<string>',
alternative_names: ['<string>'],
officer_names: ['<string>'],
website: '<string>',
phone_number: '<string>',
email: '<string>',
reference_id: '<string>'
})
};
fetch('https://api.baselayer.com/naics_prediction_requests', 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.baselayer.com/naics_prediction_requests",
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([
'name' => '<string>',
'address' => '<string>',
'alternative_names' => [
'<string>'
],
'officer_names' => [
'<string>'
],
'website' => '<string>',
'phone_number' => '<string>',
'email' => '<string>',
'reference_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.baselayer.com/naics_prediction_requests"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.baselayer.com/naics_prediction_requests")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/naics_prediction_requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "25c3910b-5423-46fb-bbe2-63b9a639f034",
"state": "COMPLETED",
"created_at": "2026-08-31T10:31:07.747451",
"business_id": "4099bc48-3ad9-46c2-99a2-c864a6ac0208",
"business_search_id": "98e11f83-e0a0-4ef9-8001-d39be1c00f25",
"predicted_naics": {
"code": "336111",
"title": "Automobile Manufacturing",
"accuracy": 1,
"keywords": [
"Automobiles",
"Manufacturing",
"Cars",
"Trucks"
],
"mcc_codes": [
{
"code": "<string>",
"description": "<string>",
"mastercard_risk": true,
"visa_risk_tier": 1
}
],
"sic_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"risk_level": "low",
"reasoning": "Based on homepage content mentioning automobile manufacturing and assembly processes."
},
"error": "<string>",
"reference_id": "Search1234"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Post Naics Prediction Request
Submit an ad-hoc NAICS code prediction request.
curl --request POST \
--url https://api.baselayer.com/naics_prediction_requests \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"address": "<string>",
"alternative_names": [
"<string>"
],
"officer_names": [
"<string>"
],
"website": "<string>",
"phone_number": "<string>",
"email": "<string>",
"reference_id": "<string>"
}
'import requests
url = "https://api.baselayer.com/naics_prediction_requests"
payload = {
"name": "<string>",
"address": "<string>",
"alternative_names": ["<string>"],
"officer_names": ["<string>"],
"website": "<string>",
"phone_number": "<string>",
"email": "<string>",
"reference_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
address: '<string>',
alternative_names: ['<string>'],
officer_names: ['<string>'],
website: '<string>',
phone_number: '<string>',
email: '<string>',
reference_id: '<string>'
})
};
fetch('https://api.baselayer.com/naics_prediction_requests', 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.baselayer.com/naics_prediction_requests",
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([
'name' => '<string>',
'address' => '<string>',
'alternative_names' => [
'<string>'
],
'officer_names' => [
'<string>'
],
'website' => '<string>',
'phone_number' => '<string>',
'email' => '<string>',
'reference_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.baselayer.com/naics_prediction_requests"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.baselayer.com/naics_prediction_requests")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/naics_prediction_requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"alternative_names\": [\n \"<string>\"\n ],\n \"officer_names\": [\n \"<string>\"\n ],\n \"website\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"email\": \"<string>\",\n \"reference_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "25c3910b-5423-46fb-bbe2-63b9a639f034",
"state": "COMPLETED",
"created_at": "2026-08-31T10:31:07.747451",
"business_id": "4099bc48-3ad9-46c2-99a2-c864a6ac0208",
"business_search_id": "98e11f83-e0a0-4ef9-8001-d39be1c00f25",
"predicted_naics": {
"code": "336111",
"title": "Automobile Manufacturing",
"accuracy": 1,
"keywords": [
"Automobiles",
"Manufacturing",
"Cars",
"Trucks"
],
"mcc_codes": [
{
"code": "<string>",
"description": "<string>",
"mastercard_risk": true,
"visa_risk_tier": 1
}
],
"sic_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"risk_level": "low",
"reasoning": "Based on homepage content mentioning automobile manufacturing and assembly processes."
},
"error": "<string>",
"reference_id": "Search1234"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Headers
Request execution preference (RFC 7240). Use respond-async for asynchronous execution, wait=N to specify a synchronous timeout hint in seconds, or priority=low to route the task to the low-priority queue.
"respond-async"
Body
Request model for ad-hoc NAICS code prediction.
The name of the business.
The address of the business.
Alternative names for the business (e.g., DBA names)
10List of business officers' names.
The website URL associated with the business.
2083A phone number associated with the business.
An email address associated with the business.
An optional reference ID to associate with the request.
128Response
Response
Unique identifier for the NAICS prediction request.
"25c3910b-5423-46fb-bbe2-63b9a639f034"
The status of the NAICS prediction request
PENDING, EXECUTING, COMPLETED, FAILED, CANCELLED "COMPLETED"
"FAILED"
The date and time when the NAICS prediction request was created.
"2026-08-31T10:31:07.747451"
The ID of the business for which the NAICS code was predicted.
"4099bc48-3ad9-46c2-99a2-c864a6ac0208"
The ID of the business search from which this NAICS prediction request originated.
"98e11f83-e0a0-4ef9-8001-d39be1c00f25"
The predicted NAICS code(s) for the business entity.
Show child attributes
Show child attributes
Any errors that occurred during the NAICS prediction request.
An optional reference ID associated with this request, inherited from the parent search.
"Search1234"