instantly-sdk-patterns

Featured

Apply production-ready Instantly.ai API client patterns for TypeScript and Python. Use when building reusable API wrappers, implementing retry logic, or establishing coding standards for Instantly integrations. Trigger with phrases like "instantly SDK patterns", "instantly best practices", "instantly client wrapper", "instantly code patterns", "idiomatic instantly".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Instantly SDK Patterns ## Overview Production-ready patterns for Instantly API v2 integrations. Instantly has no official SDK — all integrations use direct REST calls to `https://api.instantly.ai/api/v2/`. These patterns provide type safety, retry logic, pagination, and multi-tenant support. ## Prerequisites - Completed `instantly-install-auth` setup - Familiarity with async/await and TypeScript generics - Understanding of REST API pagination patterns ## Instructions ### Step 1: Type-Safe Client with Error Classification ```typescript // src/instantly/client.ts import "dotenv/config"; export class InstantlyClient { private baseUrl: string; private apiKey: string; constructor(options?: { apiKey?: string; baseUrl?: string }) { this.apiKey = options?.apiKey || process.env.INSTANTLY_API_KEY || ""; this.baseUrl = options?.baseUrl || "https://api.instantly.ai/api/v2"; if (!this.apiKey) throw new Error("INSTANTLY_API_KEY is required"); } async request<T>(path: string, options: RequestInit = {}): Promise<T> { const url = `${this.baseUrl}${path}`; const res = await fetch(url, { ...options, headers: { "Content-Type": "application/json", Authorization: `Bearer ${this.apiKey}`, ...options.headers, }, }); if (!res.ok) { const body = await res.text(); throw new InstantlyApiError(res.status, path, body); } return res.json() as Promise<T>; } // Typed convenience methods async...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category