third-party-integration▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Build robust integrations with external services using standardized patterns for API calls, error handling, authentication, and data transformation.
Third-Party Integration
Table of Contents
Overview
Build robust integrations with external services using standardized patterns for API calls, error handling, authentication, and data transformation.
When to Use
- Integrating payment processors (Stripe, PayPal)
- Using messaging services (SendGrid, Twilio)
- Connecting to analytics platforms (Mixpanel, Segment)
- Syncing with storage services (AWS S3, Google Cloud)
- Integrating CRM systems (Salesforce, HubSpot)
- Building multi-service architectures
Quick Start
Minimal working example:
const axios = require("axios");
class ThirdPartyClient {
constructor(config) {
this.apiKey = config.apiKey;
this.baseUrl = config.baseUrl;
this.timeout = config.timeout || 30000;
this.retryAttempts = config.retryAttempts || 3;
this.retryDelay = config.retryDelay || 1000;
this.client = axios.create({
baseURL: this.baseUrl,
timeout: this.timeout,
headers: {
Authorization: `Bearer ${this.apiKey}`,
"Content-Type": "application/json",
},
});
}
async request(method, endpoint, data = null, options = {}) {
let lastError;
for (let attempt = 0; attempt < this.retryAttempts; attempt++) {
try {
const response = await this.client({
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Third-Party Client Wrapper | Third-Party Client Wrapper |
| Payment Processor Integration (Stripe) | Payment Processor Integration (Stripe) |
| Email Service Integration (SendGrid) | Email Service Integration (SendGrid) |
| Python Third-Party Integration | Python Third-Party Integration |
| Data Transformation | Data Transformation |
Best Practices
✅ DO
- Implement retry logic with exponential backoff
- Validate webhook signatures
- Log all API interactions
- Use environment variables for secrets
- Transform API responses to internal models
- Implement circuit breakers for critical services
- Monitor API quota and rate limits
- Add proper error handling
- Use timeouts appropriately
- Test with sandbox/test API keys
❌ DON'T
- Hardcode API keys
- Retry all errors indefinitely
- Log sensitive data
- Trust unvalidated webhook data
- Ignore rate limits
- Make synchronous blocking calls
- Expose vendor-specific details to clients
- Skip error handling
- Use production keys in tests
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★28 reviews- ★★★★★Chaitanya Patil· Dec 28, 2024
third-party-integration fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Sofia Taylor· Dec 8, 2024
third-party-integration fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Rahul Santra· Nov 27, 2024
third-party-integration has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Omar Gonzalez· Nov 27, 2024
third-party-integration is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Piyush G· Nov 19, 2024
third-party-integration is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Advait Smith· Nov 11, 2024
Solid pick for teams standardizing on skills: third-party-integration is focused, and the summary matches what you get after install.
- ★★★★★Pratham Ware· Oct 18, 2024
Solid pick for teams standardizing on skills: third-party-integration is focused, and the summary matches what you get after install.
- ★★★★★Soo Torres· Oct 18, 2024
Keeps context tight: third-party-integration is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Shikha Mishra· Oct 10, 2024
Keeps context tight: third-party-integration is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Camila Jackson· Oct 2, 2024
third-party-integration has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 28