docs
SupportConsole

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.

LanguageNeeds
Node.jsNode 18+, no dependencies
PythonPython 3.10+, httpx
GoGo 1.21+, standard library only
RubyRuby 3.0+
PHPPHP 8.1+ with curl and json
JavaJava 11+, Jackson
.NET.NET 8 or netstandard2.0
Ruststable 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_KEY when you don't pass a key, and refuses to start without one.
  • Waiting for a result. A wait method polls a slice until it has succeeded or failed. 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 429 the client waits for Retry-After. On 5xx and 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 verify function checks the Superslice-Signature header 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.