| name | instantly-hello-world |
| description | Create a minimal working Instantly.ai example with real API calls.
Use when starting a new Instantly integration, testing your setup,
or learning basic Instantly API v2 patterns.
Trigger with phrases like "instantly hello world", "instantly example",
"instantly quick start", "simple instantly code", "test instantly api".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*) |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","instantly","api","getting-started"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Instantly Hello World
Overview
Minimal working example that lists your campaigns, checks email account health, and pulls campaign analytics — all using real Instantly API v2 endpoints.
Prerequisites
- Completed
instantly-install-auth setup
- At least one email account connected in Instantly
INSTANTLY_API_KEY environment variable set
Instructions
Step 1: List Your Campaigns
import { instantly } from "./src/instantly";
interface Campaign {
id: string;
name: string;
status: number;
}
const STATUS_LABELS: Record<number, string> = {
0: "Draft", 1: "Active", 2: "Paused", 3: "Completed",
4: "Running Subsequences", [-99]: "Suspended",
[-1]: "Accounts Unhealthy", [-2]: "Bounce Protect",
};
async function listCampaigns() {
const campaigns = await instantly<Campaign[]>("/campaigns?limit=10");
console.();
( c campaigns) {
.();
}
campaigns;
}