clay-sdk-patterns

Featured

Apply production-ready patterns for integrating with Clay via webhooks and HTTP API. Use when building Clay integrations, implementing webhook handlers, or establishing team coding standards for Clay data pipelines. Trigger with phrases like "clay SDK patterns", "clay best practices", "clay code patterns", "clay integration patterns", "clay webhook patterns".

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

# Clay Integration Patterns ## Overview Production-ready patterns for Clay integrations. Clay does not have an official SDK -- you interact via webhooks (inbound), HTTP API enrichment columns (outbound from Clay), and the Enterprise API (programmatic lookups). These patterns wrap those interfaces into reliable, reusable code. ## Prerequisites - Completed `clay-install-auth` setup - Familiarity with async/await patterns - Understanding of Clay's webhook and HTTP API model ## Instructions ### Step 1: Create a Clay Webhook Client (TypeScript) ```typescript // src/clay/client.ts — typed wrapper for Clay webhook and Enterprise API interface ClayConfig { webhookUrl: string; // Table's webhook URL for inbound data enterpriseApiKey?: string; // Enterprise API key (optional) baseUrl?: string; // Default: https://api.clay.com maxRetries?: number; timeoutMs?: number; } class ClayClient { private config: Required<ClayConfig>; constructor(config: ClayConfig) { this.config = { baseUrl: 'https://api.clay.com', maxRetries: 3, timeoutMs: 30_000, enterpriseApiKey: '', ...config, }; } /** Send a record to a Clay table via webhook */ async sendToTable(data: Record<string, unknown>): Promise<void> { const res = await this.fetchWithRetry(this.config.webhookUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data), }); if (!res.ok) { thr...

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