diff --git a/apps/docs/get-started/nodejs.mdx b/apps/docs/get-started/nodejs.mdx
index 1f76b64..31a7430 100644
--- a/apps/docs/get-started/nodejs.mdx
+++ b/apps/docs/get-started/nodejs.mdx
@@ -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");
```
diff --git a/apps/docs/guides/use-with-react-email.mdx b/apps/docs/guides/use-with-react-email.mdx
index 196000d..ba95638 100644
--- a/apps/docs/guides/use-with-react-email.mdx
+++ b/apps/docs/guides/use-with-react-email.mdx
@@ -53,7 +53,7 @@ import { Unsend } from "unsend";
import { render } from "@react-email/render";
import { Email } from "./email";
-const unsend = new Unsend({ apiKey: "us_your_unsend_api_key" });
+const unsend = new Unsend("us_your_unsend_api_key");
const html = await render(
Add code by typing \`\`\` and enter
-const unsend = new Unsend({ apiKey: "us_12345" });
+const unsend = new Unsend("us_12345");
+
+// const unsend = new Unsend("us_12345", "https://my-unsend-instance.com");
unsend.emails.send({
to: "john@doe.com",
diff --git a/packages/sdk/README.md b/packages/sdk/README.md
index ebf6ee8..7c49b79 100644
--- a/packages/sdk/README.md
+++ b/packages/sdk/README.md
@@ -36,7 +36,10 @@ bun add unsend
```javascript
import { Unsend } from "unsend";
-const unsend = new Unsend({ apiKey: "us_12345" });
+const unsend = new Unsend("us_12345");
+
+// for self-hosted installations you can pass your base URL
+// const unsend = new Unsend("us_12345", "https://my-unsend-instance.com");
unsend.emails.send({
to: "hello@acme.com",