Stratum from an AI agent.
Every Stratum API has an OpenAPI file at a stable address, so an agent can call it as a tool: give it the operations it needs, keep your key in your own code, and it can screen names, check companies and run whole client checks.
1. Pick the operations
Load the OpenAPI file for each API the agent should use; most agent frameworks import them directly.
- Transactions API:
https://stratumapis.com/docs/transactions/openapi.json - UK Business Risk + Director Score:
https://stratumapis.com/docs/business-risk/openapi.json - UK Companies House Watch:
https://stratumapis.com/docs/ch-watch/openapi.json - UK EPC Energy Performance:
https://stratumapis.com/docs/epc-energy/openapi.json - Export Controls Screening:
https://stratumapis.com/docs/export-screening/openapi.json - UK FCA Regulated Firm Verification:
https://stratumapis.com/docs/fca-verification/openapi.json - UK Postcode Intelligence:
https://stratumapis.com/docs/postcode-intelligence/openapi.json - UK Sanctions Screening:
https://stratumapis.com/docs/sanctions-screening/openapi.json
Give the agent only what it needs: a screening assistant rarely needs the job-editing routes.
2. Keep the key out of the prompt
The model decides which tool to call and with what; your code makes the HTTPS call with the X-Stratum-Key header and hands back the JSON. Make your key on your API page; while you build, the test key gives 50 free real checks in total, and names starting “Stratum Test” always give a known answer. Certificates from it are marked TEST.
A tool definition for the sanctions screen (Claude's tool format; other providers take the same JSON Schema):
{
"name": "screen_sanctions",
"description": "Screen a person or organisation against the UK, UN, EU and US OFAC sanctions lists. Returns possible matches with a score, the list and the listing, and names every list screened with its date. A possible match is not a finding: a person must confirm it.",
"input_schema": {
"type": "object",
"properties": {
"name": { "type": "string", "description": "Full name as you hold it" },
"type": { "type": "string", "enum": ["person", "entity", "any"] },
"dateOfBirth": { "type": "string", "description": "YYYY-MM-DD, or YYYY-MM / YYYY" },
"nationality": { "type": "string", "description": "Two-letter ISO country code" }
},
"required": ["name"]
}
}And the call your code makes when the model uses it:
// Your code runs the tool call; the key stays on your server, never in the prompt.
const params = new URLSearchParams(toolInput);
const res = await fetch(`https://api.stratumapis.com/v1/sanctions/screen?${params}`, {
headers: { 'X-Stratum-Key': process.env.STRATUM_KEY },
});
if (res.status === 402) return { error: 'Out of API balance: tell the user, do not retry.' };
return await res.json(); // hand the JSON back to the model as the tool result3. Keep a person in the loop
- An agent can run the screen and summarise it, but a possible match needs a person to compare the listing’s date of birth, nationality and other details with what you hold before anyone acts.
- A confirmed match on the UK list means stop: don’t deal with the person’s money or assets, and report to OFSI.
- Every reply names the lists screened and when each was refreshed: let the agent quote that, not paraphrase it.
4. Costs
Each call is paid from your API balance at the prices on prices and limits, and every reply carries the balance left (X-Stratum-Credit-Balance-Pence). With no balance left, a call answers HTTP 402 with the amount needed, so the agent can tell the user rather than retry. Webhooks tell your system about matches and watch alerts without the agent polling.
Using an MCP client (Claude Code, VS Code, Cursor and others)? Connect it to the Stratum MCP server and the checks appear as ready-made tools.