We publish an official SDK for four languages. Each is generated from this API’s
OpenAPI specification and regenerated whenever the API changes, so a client never
drifts from the contract. Under the hood every SDK sends the same requests you see
in the API reference — pick the one for your stack.
Every call is authenticated with an API key from the developer dashboard, prefixed
sc_live_ (production) or sc_test_ (sandbox). Load it from an environment
variable — never commit a key. The examples below read SODACARDS_API_KEY.
TypeScript
Published as an ES module. pnpm add, bun add and yarn add work too.
Python
Requires Python 3.10 or newer.
PHP
Per-endpoint examples
Every endpoint in the API reference carries a ready-to-copy
snippet in all four languages — placing an order, revealing codes, registering a
webhook, and the rest. The SDKs also surface typed errors that mirror the machine
error codes, so you branch on the same values the raw API returns.