Company Trust Profile
Collects a company's stated security and compliance posture: SOC 2, ISO 27001, HIPAA and GDPR claims with the page and quote that state them, its trust center, security.txt, bug-bounty or disclosure policy, DMARC policy and HSTS.
- Price per call
- 1 credit
- per successful call
- Price ceiling
- 1 credit
- every call, same price
- Failed calls
- Free
- retried automatically
- Billed
- Per call
- only on success
Endpoint
api.primaryapi.com/ v1/ run/ company. trust_profileAuth: API key with run or full access, or a dashboard session
Send the input below as a JSON body. The call is routed to a healthy upstream; if an attempt fails, it is retried automatically inside the same request and you pay only for the answer you get. To check an input and see the exact price without running anything, call POST /v1/quote/company.trust_profile with the same body (free).
Example request
curl -sS -X POST "https://api.primaryapi.com/v1/run/company.trust_profile" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"vercel.com"}'const res = await fetch('https://api.primaryapi.com/v1/run/company.trust_profile', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
domain: 'vercel.com',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/company.trust_profile",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"domain": "vercel.com",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"]){
"name": "run_api",
"arguments": {
"sku": "company.trust_profile",
"input": {
"domain": "vercel.com"
}
}
}Price this exact input first (free)
curl -sS -X POST "https://api.primaryapi.com/v1/quote/company.trust_profile" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"vercel.com"}'Returns credits (what the call is expected to cost) and maxCredits (the most it can cost, which is set aside while it runs). Invalid input fails here the same way it would on run.
Input
JSON body fields. Unknown fields are rejected with 400 invalid_input (never silently ignored). You may add the routing controls preferLatencyUnderMs and maxCredits to the same object.
domainstringrequired- Company domain such as "stripe.com". A URL or email address is reduced to its domain; "www." is dropped.max 2048 chars
urlstring- Trust-center or security page to read in addition to what is found on the site.max 2048 chars · format: uri
Output
When output.found is true, output.data has these fields.
domainstringtrustCenterobject | nulltrustCenter.urlstringtrustCenter.platformenum- Hosting platform detected from the page markup; self_hosted when none is recognised.one of: safebase, secureframe, conveyor, vanta, drata, whistic, self_hosted
claimsobject[]- Sorted by framework, then page.
claims[].frameworkenum- one of: soc1, soc2, soc3, iso27001, iso27017, iso27018, iso27701, iso42001, iso9001, pci_dss, hipaa, gdpr, ccpa, fedramp, hitrust, csa_star, tisax, cyber_essentials, eu_us_dpf
claims[].labelstring- Human label, e.g. "SOC 2 Type II", "ISO/IEC 27001".
claims[].statusenum- claimed = the page says the company holds / complies with it; in_progress = "working towards", "in progress"; mentioned = named without a claim (e.g. "we help customers comply with GDPR").one of: claimed, in_progress, mentioned
claims[].statedOnstring- URL of the page that states it.
claims[].quotestring- The words on the page (at most 200 characters).
claims[].sourceenum- one of: page_text, trust_center_data
securityTxtobject | null- RFC 9116 security.txt, when published.
securityTxt.urlstringsecurityTxt.contactstring[]securityTxt.expiresstring | nullsecurityTxt.expiredboolean | null- Whether Expires is in the past (null when it has none).
securityTxt.encryptionstring[]securityTxt.policystring[]securityTxt.acknowledgmentsstring[]securityTxt.hiringstring[]securityTxt.canonicalstring[]securityTxt.csafstring[]securityTxt.preferredLanguagesstring[]securityTxt.bugBountyboolean | null- The Bug-Bounty field (IANA registry), when present.
securityTxt.signedboolean- The file is an OpenPGP cleartext-signed message.
vulnerabilityDisclosureobject[]- Bug-bounty programmes and vulnerability-disclosure policies linked from the site or security.txt.
vulnerabilityDisclosure[].urlstringvulnerabilityDisclosure[].kindenum- one of: bug_bounty, disclosure_policy
vulnerabilityDisclosure[].platformstring | null- hackerone, bugcrowd, intigriti or yeswehack when hosted there.
dmarcobject | nulldmarc.recordstringdmarc.policyenum | null- one of: none, quarantine, reject
dmarc.subdomainPolicyenum | null- one of: none, quarantine, reject
dmarc.pctinteger | nullhstsobject | null- Strict-Transport-Security sent by the home page over HTTPS.
hsts.headerstringhsts.maxAgeinteger | nullhsts.includeSubDomainsbooleanhsts.preloadbooleanhttpsHomepageboolean- The home page answered over HTTPS.
pagesCheckedstring[]- Pages that were read for claims (sorted).
TypeScript type
/** output.data when output.found is true */
type CompanyTrustProfile = {
domain: string;
trustCenter: {
url: string;
/** Hosting platform detected from the page markup; self_hosted when none is recognised. */
platform: "safebase" | "secureframe" | "conveyor" | "vanta" | "drata" | "whistic" | "self_hosted";
} | null;
/** Sorted by framework, then page. */
claims: {
framework: "soc1" | "soc2" | "soc3" | "iso27001" | "iso27017" | "iso27018" | "iso27701" | "iso42001" | "iso9001" | "pci_dss" | "hipaa" | "gdpr" | "ccpa" | "fedramp" | "hitrust" | "csa_star" | "tisax" | "cyber_essentials" | "eu_us_dpf";
/** Human label, e.g. "SOC 2 Type II", "ISO/IEC 27001". */
label: string;
/** claimed = the page says the company holds / complies with it; in_progress = "working towards", "in progress"; mentioned = named without a claim (e.g. "we help customers comply with GDPR"). */
status: "claimed" | "in_progress" | "mentioned";
/** URL of the page that states it. */
statedOn: string;
/** The words on the page (at most 200 characters). */
quote: string;
source: "page_text" | "trust_center_data";
}[];
/** RFC 9116 security.txt, when published. */
securityTxt: {
url: string;
contact: string[];
expires: string | null;
/** Whether Expires is in the past (null when it has none). */
expired: boolean | null;
encryption: string[];
policy: string[];
acknowledgments: string[];
hiring: string[];
canonical: string[];
csaf: string[];
preferredLanguages: string[];
/** The Bug-Bounty field (IANA registry), when present. */
bugBounty: boolean | null;
/** The file is an OpenPGP cleartext-signed message. */
signed: boolean;
} | null;
/** Bug-bounty programmes and vulnerability-disclosure policies linked from the site or security.txt. */
vulnerabilityDisclosure: {
url: string;
kind: "bug_bounty" | "disclosure_policy";
/** hackerone, bugcrowd, intigriti or yeswehack when hosted there. */
platform: string | null;
}[];
dmarc: {
record: string;
policy: "none" | "quarantine" | "reject" | null;
subdomainPolicy: "none" | "quarantine" | "reject" | null;
pct: number | null;
} | null;
/** Strict-Transport-Security sent by the home page over HTTPS. */
hsts: {
header: string;
maxAge: number | null;
includeSubDomains: boolean;
preload: boolean;
} | null;
/** The home page answered over HTTPS. */
httpsHomepage: boolean;
/** Pages that were read for claims (sorted). */
pagesChecked: string[];
};If what you asked about does not exist, is private, or a search matches nothing, the call still succeeds: output.found is false, output.data is null and output.reason says why. Such misses are free unless the notes below say misses are billed, in which case a miss costs the price of one call.
Example response
Values are placeholders that follow the output schema (strings as "string", numbers as 0); credits shows what this call would cost at the usual price.
{
"output": {
"found": true,
"data": {
"domain": "example.com",
"trustCenter": {
"url": "https://trust.example.com/",
"platform": "safebase"
},
"claims": [
{
"framework": "iso27001",
"label": "ISO/IEC 27001",
"status": "claimed",
"statedOn": "https://trust.example.com/",
"quote": "ISO/IEC 27001",
"source": "trust_center_data"
},
{
"framework": "soc2",
"label": "SOC 2 Type II",
"status": "claimed",
"statedOn": "https://trust.example.com/",
"quote": "completed a SOC 2 Type 2 attestation for Security, Confidentiality, and Availability",
"source": "trust_center_data"
}
],
"securityTxt": {
"url": "https://example.com/.well-known/security.txt",
"contact": [
"mailto:[email protected]"
],
"expires": "2027-06-30T00:00:00Z",
"expired": false,
"encryption": [],
"policy": [
"https://example.com/security/disclosure"
],
"acknowledgments": [],
"hiring": [],
"canonical": [
"https://example.com/.well-known/security.txt"
],
"csaf": [],
"preferredLanguages": [
"en"
],
"bugBounty": null,
"signed": false
},
"vulnerabilityDisclosure": [
{
"url": "https://example.com/security/disclosure",
"kind": "disclosure_policy",
"platform": null
}
],
"dmarc": {
"record": "v=DMARC1; p=reject; pct=100",
"policy": "reject",
"subdomainPolicy": null,
"pct": 100
},
"hsts": {
"header": "max-age=63072000; includeSubDomains; preload",
"maxAge": 63072000,
"includeSubDomains": true,
"preload": true
},
"httpsHomepage": true,
"pagesChecked": [
"https://example.com/",
"https://trust.example.com/"
]
}
},
"provider": "PrimaryAPI",
"credits": 1,
"items": 1,
"requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}Pricing and reliability
Calls go only to upstreams that are healthy right now. If an attempt fails, the call is retried automatically inside the same request; a failed attempt costs nothing, and a call never costs more than its quote’s maxCredits. Live figures below are measured on real traffic.
Success rate, uptime, latency and call counts are measured live from real traffic over 30 days and show “—” until there is data.
Errors
Errors are JSON { code, error, requestId } and are never charged. The ones to handle for this endpoint:
- invalid_inputThe request failed validation before anything ran.
- unauthorizedNo valid API key or session was presented.
- insufficient_balanceThe balance cannot cover the most this call could cost.
- key_limit_reachedThe key’s own spend limit is used up for the current window.
- trial_cap_reachedAn agent trial key has used its whole trial budget.
- forbiddenThe credential is valid but may not do this.
- not_foundThe thing addressed by the URL does not exist for you.
- idempotency_conflictThe
Idempotency-Keyis already bound to a different request. - rate_limitedToo many requests in the current window.
- all_sources_failedThe call could not be answered, even after automatic retries.
- service_unavailableThis API cannot run in this deployment right now.
- timeoutThe request passed its deadline before it finished.
Notes
Claims are reported exactly as the pages state them, never inferred: a framework the pages do not name is simply absent, and an absent claim does not mean the company lacks it (many publish reports only on request). Trust centers that render only in a browser are reported without claims. A domain that does not resolve is a free miss (reason domain_not_found). Pages are read the way a polite crawler would: robots.txt is honoured (a disallowed page is a free miss with reason robots_disallowed), requests are paced per site, and only facts, short quotes and source links are returned. Outputs are stable between runs of an unchanged page (sorted lists, normalised whitespace, no timestamps), so the API can be scheduled as a monitor that fires only when the content changes.
More Company endpoints
Generated from the PrimaryAPI catalog. Machine-readable contract: GET https://api.primaryapi.com/v1/apis/company.trust_profile.