docs: fix node sdk initialization (#163)

This commit is contained in:
KM Koushik authored and GitHub committed 2025-05-17 14:13:32 +10:00
1 parent e850512f0a
commit 14557a96ac
5 files changed
+19 -5

No files matched your search

+8 -1
View File
@@ -38,7 +38,14 @@ icon: node-js
```javascript
import { Unsend } from "unsend";
const unsend = new Unsend({ apiKey: "us_12345" });
const unsend = new Unsend("us_12345");
```
If you are running a self-hosted version of Unsend, pass the base URL as the
second argument:
```javascript
const unsend = new Unsend("us_12345", "https://my-unsend-instance.com");
```
</Step>