Exclusions get
curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15"
}
'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get"
payload = { "sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15" }
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({sam_number: 'bf32fd84-e837-4758-a315-4457e3ff5a15'})
};
fetch('https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get', 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/sam-gov/opportunities/exclusions-get",
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([
'sam_number' => 'bf32fd84-e837-4758-a315-4457e3ff5a15'
]),
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/sam-gov/opportunities/exclusions-get"
payload := strings.NewReader("{\n \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\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/sam-gov/opportunities/exclusions-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get")
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 \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\n}"
response = http.request(request)
puts response.read_body{
"by": "sam_number",
"count": 1,
"records": [
{
"active_date": "1991-04-09",
"additional_comments": null,
"address": {
"address_line1": "712 Camelot Dr.",
"address_line2": null,
"address_line3": null,
"address_line4": null,
"city": "College Park",
"country_code": "USA",
"state_or_province_code": "GA",
"zip_code": "30349"
},
"cage_code": null,
"classification": "Firm",
"creation_date": "2012-07-27",
"cross_reference": null,
"ct_code": "R",
"excluding_agency_code": null,
"excluding_agency_name": "Department of Housing and Urban Development",
"excluding_agency_org_id": "100000391",
"exclusion_program": "Reciprocal",
"exclusion_type": "Ineligible (Proceedings Complete)",
"first_name": null,
"is_fascsa_order": false,
"last_name": null,
"middle_name": null,
"name": "Martin and Martin",
"npi": "NA",
"open_data_flag": null,
"prefix": null,
"publication_id": "view-exclusion-details/v3:2026-10-18",
"record_status": "Active",
"retrieved_at": "2026-10-18T22:35:02Z",
"row_number": null,
"sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"source": "view_exclusion_details_v3",
"source_record_id": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"source_url": "https://sam.gov/api/prod/view-exclusion-details/v3/api/exclusion/bf32fd84-e837-4758-a315-4457e3ff5a15",
"suffix": null,
"termination_date": "Indefinite",
"uei_sam": "S9AGLMTJ5LN1",
"update_date": "2012-07-27"
}
],
"requested": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"retrieved_at": "2026-10-18T22:35:02Z",
"source_url": "https://sam.gov/api/prod/view-exclusion-details/v3/api/exclusion/bf32fd84-e837-4758-a315-4457e3ff5a15"
}SAM.gov
Exclusions get
Look up one exclusion record, or check whether a registrant is excluded.
POST
https://api.aisa.one
/
apis
/
v1
/
sam-gov
/
opportunities
/
exclusions-get
Exclusions get
curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15"
}
'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get"
payload = { "sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15" }
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({sam_number: 'bf32fd84-e837-4758-a315-4457e3ff5a15'})
};
fetch('https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get', 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/sam-gov/opportunities/exclusions-get",
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([
'sam_number' => 'bf32fd84-e837-4758-a315-4457e3ff5a15'
]),
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/sam-gov/opportunities/exclusions-get"
payload := strings.NewReader("{\n \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\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/sam-gov/opportunities/exclusions-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get")
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 \"sam_number\": \"bf32fd84-e837-4758-a315-4457e3ff5a15\"\n}"
response = http.request(request)
puts response.read_body{
"by": "sam_number",
"count": 1,
"records": [
{
"active_date": "1991-04-09",
"additional_comments": null,
"address": {
"address_line1": "712 Camelot Dr.",
"address_line2": null,
"address_line3": null,
"address_line4": null,
"city": "College Park",
"country_code": "USA",
"state_or_province_code": "GA",
"zip_code": "30349"
},
"cage_code": null,
"classification": "Firm",
"creation_date": "2012-07-27",
"cross_reference": null,
"ct_code": "R",
"excluding_agency_code": null,
"excluding_agency_name": "Department of Housing and Urban Development",
"excluding_agency_org_id": "100000391",
"exclusion_program": "Reciprocal",
"exclusion_type": "Ineligible (Proceedings Complete)",
"first_name": null,
"is_fascsa_order": false,
"last_name": null,
"middle_name": null,
"name": "Martin and Martin",
"npi": "NA",
"open_data_flag": null,
"prefix": null,
"publication_id": "view-exclusion-details/v3:2026-10-18",
"record_status": "Active",
"retrieved_at": "2026-10-18T22:35:02Z",
"row_number": null,
"sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"source": "view_exclusion_details_v3",
"source_record_id": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"source_url": "https://sam.gov/api/prod/view-exclusion-details/v3/api/exclusion/bf32fd84-e837-4758-a315-4457e3ff5a15",
"suffix": null,
"termination_date": "Indefinite",
"uei_sam": "S9AGLMTJ5LN1",
"update_date": "2012-07-27"
}
],
"requested": "bf32fd84-e837-4758-a315-4457e3ff5a15",
"retrieved_at": "2026-10-18T22:35:02Z",
"source_url": "https://sam.gov/api/prod/view-exclusion-details/v3/api/exclusion/bf32fd84-e837-4758-a315-4457e3ff5a15"
}Request contract
- Method and path: POST /apis/v1/sam-gov/opportunities/exclusions-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sam-gov/opportunities/exclusions-get
{
"operationId": "sam-gov.opportunities.exclusions-get",
"method": "POST",
"path": "/apis/v1/sam-gov/opportunities/exclusions-get",
"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": {
"sam_number": "bf32fd84-e837-4758-a315-4457e3ff5a15"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"cage_code": {
"description": "Pattern: ^[A-Za-z0-9]{5}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"sam_number": {
"description": "Exclusion SAM Number (UUID). Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"uei_sam": {
"description": "Pattern: ^[A-Za-z0-9]{12}$.",
"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
application/json
Response
One exclusion by SAM Number (the UUID in the extract's SAM Number column, served by SAM.gov's view-exclusion-details service), or every exclusion of a UEI or CAGE code (the v4 exclusions API, with the SAM Number resolved through the UI exclusion index). Same record shape as exclusions_list; the source field says which service answered.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
active_date | string | As the source states it (extract and view-exclusion-details: YYYY-MM-DD or MM/DD/YYYY; v4 API: MM-DD-YYYY). |
additional_comments | string | |
address | object | |
cage_code | string | |
classification | string | |
creation_date | string | |
cross_reference | string | |
ct_code | string | |
excluding_agency_code | string | Agency code as the extract and the v4 API state it (HUD, DOD-DLA ...); null from view-exclusion-details. |
excluding_agency_name | string | Agency name from the APIs; null from the extract. |
excluding_agency_org_id | string | Organization id from view-exclusion-details. |
exclusion_program | string | |
exclusion_type | string | |
first_name | string | |
is_fascsa_order | boolean | |
last_name | string | |
middle_name | string | |
name | string | Entity or vessel name; null for individuals. |
npi | string | |
open_data_flag | string | |
prefix | string | |
publication_id | string | |
record_status | string | |
retrieved_at | string | |
row_number | number | 1-based data row in the extract (extract records only). |
sam_number | string | UUID from the extract's SAM Number column, the sgs _id and the view-exclusion-details path. |
source | string | |
source_record_id | string | The SAM Number (UUID); for API records whose SAM Number could not be resolved, uei:<UEI>:<activation date>. |
source_url | string | |
suffix | string | |
termination_date | string | As the source states it, including the literal Indefinite. |
uei_sam | string | |
update_date | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.