Skip to main content

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​

LanguagePackageInstallGuide
Pythonsantatipip install santatiGuide
Node@santati/nodenpm install @santati/nodeGuide
Gogithub.com/jamescarr/santati-sdks/gogo get github.com/jamescarr/santati-sdks/goGuide
Rustsantaticargo add santatiGuide
Elixirsantati{:santati, "~> 0.1"}Guide
Rubysantatigem install santatiGuide
PHPsantati/santati-phpcomposer require santati/santati-phpGuide

Shared behaviour​

  • Default base URL: https://api.santati.io.
  • trail is 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/504 and 429 — unless the code is quota_exceeded.
  • A Retry-After header is honoured unless it exceeds the backoff cap, in which case the error is raised immediately.
  • Each emit without an idempotency_key gets 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:

KindWhen
Validationlocal validation, or HTTP 400, 413, 422
AuthHTTP 401, 403
NotFoundHTTP 404
RateLimitedHTTP 429
ServerHTTP 5xx
Transportno response: refused, DNS, TLS, timeout
Apiany 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.