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:
3
Create a client
Import
Instantly, create a client, and list up to 10 campaigns:Handle API errors
The SDK throwsResponseError 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.