List agencies
curl --request POST \
--url https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Health"
}
'import requests
url = "https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies"
payload = { "query": "Health" }
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: 'Health'})
};
fetch('https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies', 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/txsmartbuy-gov/public-tenders/list-agencies",
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' => 'Health'
]),
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/txsmartbuy-gov/public-tenders/list-agencies"
payload := strings.NewReader("{\n \"query\": \"Health\"\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/txsmartbuy-gov/public-tenders/list-agencies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Health\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies")
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\": \"Health\"\n}"
response = http.request(request)
puts response.read_body{
"agencies": [
{
"agency_id": "9835",
"agency_number": "R2120",
"name": "Andrews Center Behavioral Healthcare - R2120"
},
{
"agency_id": "9048",
"agency_number": "A0113",
"name": "Central Texas Community Health Center - A0113"
},
{
"agency_id": "11384",
"agency_number": "R0920",
"name": "Community Healthcore - R0920"
},
{
"agency_id": "7877",
"agency_number": "537",
"name": "Dept Of State Health Services - 537"
},
{
"agency_id": "7957",
"agency_number": "529",
"name": "Health & Human Services Commission - 529"
},
{
"agency_id": "9443",
"agency_number": "709",
"name": "Texas A&M University Health Science Center - 709"
},
{
"agency_id": "8152",
"agency_number": "554",
"name": "Texas Animal Health Commision - 554"
},
{
"agency_id": "415440",
"agency_number": "510",
"name": "Texas Behavioral Health Executive Council - 510"
},
{
"agency_id": "11272",
"agency_number": "R1880",
"name": "Texas Panhandle Centers Behavorial & Developmental Health - R1880"
},
{
"agency_id": "8078",
"agency_number": "739",
"name": "Texas Tech Health Science Cnt - 739"
},
{
"agency_id": "11444",
"agency_number": "R1010",
"name": "The Harris Center for Mental Health - R1010"
},
{
"agency_id": "8095",
"agency_number": "B0006",
"name": "Travis County Healthcare District - B0006"
},
{
"agency_id": "11648",
"agency_number": "R1700",
"name": "Tri-County Behavioral Healthcare - R1700"
},
{
"agency_id": "10787",
"agency_number": "R1080",
"name": "Tropical Texas Behavioral Health - R1080"
},
{
"agency_id": "8261",
"agency_number": "655",
"name": "Tx Dept Of Mental Health (mhm) - 655"
},
{
"agency_id": "8955",
"agency_number": "785",
"name": "Ut Health Center At Tyler - 785"
},
{
"agency_id": "8321",
"agency_number": "745",
"name": "UT Health/Science Center-San Antonio - 745"
}
],
"count": 17,
"observed_at_ms": 1791225211084,
"query": "Health",
"total": 411
}Texas SmartBuy ESBD
List agencies
Resolving an agency name to the agency_number search_solicitations and search_awards take.
POST
https://api.aisa.one
/
apis
/
v1
/
txsmartbuy-gov
/
public-tenders
/
list-agencies
List agencies
curl --request POST \
--url https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Health"
}
'import requests
url = "https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies"
payload = { "query": "Health" }
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: 'Health'})
};
fetch('https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies', 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/txsmartbuy-gov/public-tenders/list-agencies",
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' => 'Health'
]),
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/txsmartbuy-gov/public-tenders/list-agencies"
payload := strings.NewReader("{\n \"query\": \"Health\"\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/txsmartbuy-gov/public-tenders/list-agencies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Health\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies")
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\": \"Health\"\n}"
response = http.request(request)
puts response.read_body{
"agencies": [
{
"agency_id": "9835",
"agency_number": "R2120",
"name": "Andrews Center Behavioral Healthcare - R2120"
},
{
"agency_id": "9048",
"agency_number": "A0113",
"name": "Central Texas Community Health Center - A0113"
},
{
"agency_id": "11384",
"agency_number": "R0920",
"name": "Community Healthcore - R0920"
},
{
"agency_id": "7877",
"agency_number": "537",
"name": "Dept Of State Health Services - 537"
},
{
"agency_id": "7957",
"agency_number": "529",
"name": "Health & Human Services Commission - 529"
},
{
"agency_id": "9443",
"agency_number": "709",
"name": "Texas A&M University Health Science Center - 709"
},
{
"agency_id": "8152",
"agency_number": "554",
"name": "Texas Animal Health Commision - 554"
},
{
"agency_id": "415440",
"agency_number": "510",
"name": "Texas Behavioral Health Executive Council - 510"
},
{
"agency_id": "11272",
"agency_number": "R1880",
"name": "Texas Panhandle Centers Behavorial & Developmental Health - R1880"
},
{
"agency_id": "8078",
"agency_number": "739",
"name": "Texas Tech Health Science Cnt - 739"
},
{
"agency_id": "11444",
"agency_number": "R1010",
"name": "The Harris Center for Mental Health - R1010"
},
{
"agency_id": "8095",
"agency_number": "B0006",
"name": "Travis County Healthcare District - B0006"
},
{
"agency_id": "11648",
"agency_number": "R1700",
"name": "Tri-County Behavioral Healthcare - R1700"
},
{
"agency_id": "10787",
"agency_number": "R1080",
"name": "Tropical Texas Behavioral Health - R1080"
},
{
"agency_id": "8261",
"agency_number": "655",
"name": "Tx Dept Of Mental Health (mhm) - 655"
},
{
"agency_id": "8955",
"agency_number": "785",
"name": "Ut Health Center At Tyler - 785"
},
{
"agency_id": "8321",
"agency_number": "745",
"name": "UT Health/Science Center-San Antonio - 745"
}
],
"count": 17,
"observed_at_ms": 1791225211084,
"query": "Health",
"total": 411
}Request contract
- Method and path: POST /apis/v1/txsmartbuy-gov/public-tenders/list-agencies
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-agencies
{
"operationId": "txsmartbuy-gov.public-tenders.list-agencies",
"method": "POST",
"path": "/apis/v1/txsmartbuy-gov/public-tenders/list-agencies",
"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": "Health"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"query": {
"description": "Case-insensitive substring to filter agency names (e.g. 'Health').",
"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
Response
List the agencies / SmartBuy members the ESBD search form offers (about 411), with the agency number each filter takes; optional substring filter on the name. Source: the agencies[] list returned by POST ESBD.Service.ss (ep-1).
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
agencies | object[] | |
count | number | |
observed_at_ms | number | Unix epoch milliseconds when the program observed the response. |
query | string | |
total | number | Agencies the site listed before filtering. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.