/

SDKs

Node.js

The official library for Node.js 18 and later, with types included.

2 min read

npm
npm
npm
import { Sluice } from "@sluice/node";

const sluice = new Sluice(process.env.SLUICE_KEY, { timeout: 10_000 });
import { Sluice } from "@sluice/node";

const sluice = new Sluice(process.env.SLUICE_KEY, { timeout: 10_000 });
import { Sluice } from "@sluice/node";

const sluice = new Sluice(process.env.SLUICE_KEY, { timeout: 10_000 });

Every method returns a promise and throws a SluiceError with status and code when the API answers with an error. Requests that fail on the network are retried twice with backoff.

Something missing or wrong on this page? Tell us at support@sluicehq.dev and we will fix it.

Create a free website with Framer, the website builder loved by startups, designers and agencies.