Overview
Official libraries for the Superslice API in eight languages.
Each library wraps the whole API: slices, models, the catalogue, presets, pricing and slicer versions. All eight work the same way, so moving between them is mostly a change of syntax.
| Language | Needs |
|---|---|
| Node.js | Node 18+, no dependencies |
| Python | Python 3.10+, httpx |
| Go | Go 1.21+, standard library only |
| Ruby | Ruby 3.0+ |
| PHP | PHP 8.1+ with curl and json |
| Java | Java 11+, Jackson |
| .NET | .NET 8 or netstandard2.0 |
| Rust | stable Rust, Tokio |
None is on a package registry yet. Each page shows how to install it from GitHub until it is.
What they share
- Your key. Every client reads
SUPERSLICE_API_KEYwhen you don't pass a key, and refuses to start without one. - Waiting for a result. A
waitmethod polls a slice until it hassucceededorfailed. For production, use a callback instead. - Idempotency. Pass an idempotency key when you create a slice, such as your order number. Sending the same request again returns the same slice. The same key with different settings is an
idempotency_conflict. - Retries. On
429the client waits forRetry-After. On5xxand network errors it backs off, starting at 0.5 s and doubling. The default is two retries. Creating a slice is retried only when you passed an idempotency key, so a retry can never slice twice. - Errors. Every API error becomes a typed error carrying the HTTP status, the error code, its title and the field details. There is one type per status: authentication, permission, not found, conflict, rate limit, invalid request, plan limit and server.
- Callbacks. A
verifyfunction checks theSuperslice-Signatureheader against the raw body, rejects timestamps more than 5 minutes off, and returns the event. See Callbacks.
Pick a release from GET /v1/slicers rather than GET /v1/engines. The engines list includes releases your org doesn't allow, and a slice that names one fails with engine_release_not_allowed.
Was this page helpful?