Inventory
List domains
List hostnames (Postgres; not Attack Surface). Ordered by apex then FQDN. Optional apexDomain scopes to one apex. Offset pagination via page + limit.
GET
/
api
/
v1
/
orgs
/
{orgSlug}
/
domains
List domains
curl --request GET \
--url https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains', 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.tolmo.com/api/v1/orgs/{orgSlug}/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"page": 4503599627370495,
"limit": 4503599627370495,
"total": 4503599627370495,
"totalPages": 4503599627370495,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fqdn": "<string>",
"apexDomain": "<string>",
"lifecycleStatus": "current",
"dnsStatus": "resolved",
"webStatus": "reachable",
"addresses": [
"<string>"
],
"cname": "<string>",
"preferredUrl": "<string>",
"httpStatus": 0,
"redirectUrl": "<string>",
"title": "<string>",
"tlsNotAfter": "<string>",
"firstDiscoveredAt": "<string>",
"lastDiscoveredAt": "<string>",
"lastCheckedAt": "<string>",
"lastResolvedAt": "<string>",
"lastHttpSeenAt": "<string>",
"staleSince": "<string>",
"sources": [
"<string>"
],
"environment": "production",
"environmentSource": "override",
"environmentAuto": "production",
"environmentOverride": "production",
"labels": [
"<string>"
],
"offensiveAuthorizedAt": "<string>",
"offensiveAuthorizedBy": "<string>",
"offensiveCoversDescendants": true,
"offensiveAuthorizationInheritedFrom": "<string>"
}
]
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}Authorizations
A Tolmo API token, sent as Authorization: Bearer <token>. Either a user token (usr_tok.*, minted by tolmo auth login, scoped to your own permissions) or an org API token created in the Tolmo app, for CI and automation.
Path Parameters
Query Parameters
Available options:
production, staging, unlabeled Required string length:
1 - 512Available options:
current, stale, historical Available options:
resolved, unresolved, error, not_checked Available options:
reachable, unreachable, blocked, not_checked Required string length:
1 - 128Required string length:
1 - 1024Available options:
true, false Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 100Required string length:
1 - 253Response
Default Response
⌘I
List domains
curl --request GET \
--url https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains', 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.tolmo.com/api/v1/orgs/{orgSlug}/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tolmo.com/api/v1/orgs/{orgSlug}/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"page": 4503599627370495,
"limit": 4503599627370495,
"total": 4503599627370495,
"totalPages": 4503599627370495,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fqdn": "<string>",
"apexDomain": "<string>",
"lifecycleStatus": "current",
"dnsStatus": "resolved",
"webStatus": "reachable",
"addresses": [
"<string>"
],
"cname": "<string>",
"preferredUrl": "<string>",
"httpStatus": 0,
"redirectUrl": "<string>",
"title": "<string>",
"tlsNotAfter": "<string>",
"firstDiscoveredAt": "<string>",
"lastDiscoveredAt": "<string>",
"lastCheckedAt": "<string>",
"lastResolvedAt": "<string>",
"lastHttpSeenAt": "<string>",
"staleSince": "<string>",
"sources": [
"<string>"
],
"environment": "production",
"environmentSource": "override",
"environmentAuto": "production",
"environmentOverride": "production",
"labels": [
"<string>"
],
"offensiveAuthorizedAt": "<string>",
"offensiveAuthorizedBy": "<string>",
"offensiveCoversDescendants": true,
"offensiveAuthorizationInheritedFrom": "<string>"
}
]
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}