SDKs
Seven official SDKs wrap the same OpenAPI spec in a small, idiomatic client. They share one surface — emit one event or a batch, list a page, iterate every page — and one error and retry model, so moving between languages changes syntax, not behaviour.
New here? The Quickstart emits and reads an event in every language.
Packages
| Language | Package | Install | Guide |
|---|---|---|---|
| Python | santati | pip install santati | Guide |
| Node | @santati/node | npm install @santati/node | Guide |
| Go | github.com/jamescarr/santati-sdks/go | go get github.com/jamescarr/santati-sdks/go | Guide |
| Rust | santati | cargo add santati | Guide |
| Elixir | santati | {:santati, "~> 0.1"} | Guide |
| Ruby | santati | gem install santati | Guide |
| PHP | santati/santati-php | composer require santati/santati-php | Guide |
Shared behaviour
- Default base URL:
https://api.santati.io. trailis the default trail for emits and is never applied to reads.- 10 s timeout per attempt; 2 retries after the first attempt with exponential backoff from 250 ms to an 8 s cap.
- Retried: transport failures,
500/502/503/504and429— unless the code isquota_exceeded. - A
Retry-Afterheader is honoured unless it exceeds the backoff cap, in which case the error is raised immediately. - Each emit without an
idempotency_keygets a fresh lowercase UUIDv4, reused verbatim by every retry, so a retry never stores the event twice. - Redirects are never followed.
Every failure maps to one of seven kinds, each carrying status, code, field, retry_after and message:
| Kind | When |
|---|---|
| Validation | local validation, or HTTP 400, 413, 422 |
| Auth | HTTP 401, 403 |
| NotFound | HTTP 404 |
| RateLimited | HTTP 429 |
| Server | HTTP 5xx |
| Transport | no response: refused, DNS, TLS, timeout |
| Api | any other status, an unexpected 2xx, or an undecodable body |
Prefer raw HTTP? HTTP examples has copy-paste programs with no SDK.
Generate a client from the OpenAPI spec
For a language without an official SDK, generate a client from the published spec — the same document that generates this site's reference. Its servers[0] is https://api.santati.io, and it contains only the public, key-authenticated /api/v0/ routes.
npx @openapitools/openapi-generator-cli generate \
-i https://api.santati.io/openapi/v0.yaml \
-g python \
-o santati-client
Swap -g python for any generator the tool supports. Generated clients are not tested by Santati; they track the spec, not our release process.
Versioning
/api/v0/ is additive-only: new endpoints, new optional request fields and new response fields ship inside v0. Removing or renaming a path, an operation, a field or a required member is not allowed inside v0; it requires a new /api/v1/ route set served alongside it. Deprecated operations are marked in the spec and removed no earlier than 90 days after the marker ships.
Tools
- MCP server: the same audit-trail domain behind six tools for hosted agent clients.
- API reference: every operation, generated from the spec.