Skip to main content
Install the SDK, authenticate with an API v2 key, and list campaigns in your workspace.

Prerequisites

  • Node.js 22 or later.
  • An Instantly workspace with an API v2 key.
The SDK is currently in beta. Install it with the beta tag until the stable 1.0.0 release is available.
1

Install the SDK

Add the package to your Node.js project:
2

Set your API key

Store your API key in a server-side environment variable:
Never expose your API key in client-side code or commit it to source control.
3

Create a client

Import Instantly, create a client, and list up to 10 campaigns:

Handle API errors

The SDK throws ResponseError when the API returns a non-successful response. Its response property is a standard Fetch API Response.

Next steps

API reference

Browse resources, request fields, and response schemas.

View on npm

Review package details and the latest release notes.