Skip to main content
Complete code examples for integrating with the SNH AI Public Records API in various programming languages.
For detailed request/response documentation, see the individual endpoint pages under API Reference. When sending cases[], include is_excluded on every row (true keeps the pair for mapping/count gate but strips that offense_id from data.decision).
For evaluate examples below, set xml to a sample from Supported XML Schemas — do not leave a placeholder string.

Python

Basic Authentication and Evaluation

Token Caching with Auto-Refresh

Identity Match (Compliance Engine)

JavaScript/Node.js

Basic Authentication and Evaluation

Token Caching with Auto-Refresh

cURL

Get Token

Evaluate Record (Full)

Paste a ScreeningResults sample from Supported XML Schemas into record.xml (or build the JSON payload from a saved file).

Identity Match

Health Check

Error Handling

Python — Retry with Token Refresh