Server-side SDK
Call the public API with generated method, path, body and response types while keeping authority and retries explicit.
Get the reviewed distribution
The@808labs/ignite-sdk package is implemented for Node.js 22.13+ and ESM, with no runtime dependencies. npm publication is a separate release step. Ask Ignyt for the reviewed distribution and version; do not assume a similarly named registry package is ours. Public OpenAPI remains the contract authority.
The client is server-only and rejects browser use. Keep server keys, customer access tokens and delegation secrets out of browser bundles, prompts and logs.
Make a typed request
/v1/me; that preflight counts as an API call. The backend still rechecks authority on every request. HTTPS is required except loopback Sandbox.
Use customer-portal authority
For portal operations, configure a server-sideaccessToken callback that returns the signed-in customer’s verified access token, plus the selected authorized appId and environment. Do not configure an API key as an alternative customer credential. The callback is invoked for each request so your server can refresh tokens through its existing identity integration.
The backend applies current role, recent sign-in verification, workspace/app/environment, plan and Live approval rules. The SDK does not grant permissions or implement customer login. See managed requests for a portal workflow.
Results and safe write handling
request() returns { data, status, requestId }. Method/path parameters, queries, bodies and success responses are generated from public OpenAPI. Pass idempotencyKey only where an operation supports it; persist the exact command key and payload before sending. Plain cart creation does not currently support idempotent replay.
The SDK follows no redirects and performs no automatic retries. IgniteError.outcomeUnknown means the write may have been accepted: use its documented lookup/replay contract before another effect. Do not create a new command merely because a response was lost.
The default timeout is 15 seconds, configurable up to 60 seconds; calls also accept an AbortSignal. JSON requests are bounded to 1 MiB and responses to 4 MiB. Errors retain safe status/code, request ID and Retry-After metadata rather than copying upstream response bodies into logs.
Verify raw webhook bytes
rawBody must contain the original bytes and signatureHeader the Ignite-Signature value. Verify before parsing or acting, then durably deduplicate the returned event ID. Verification alone does not provide exactly-once business processing. The verifier accepts at most two rotation secrets and a timestamp tolerance up to 300 seconds. Never log signatures or secrets.
Related guides
Signed webhooks
Receive, verify and recover events safely.
Errors and retries
Distinguish definite errors from uncertain writes.