API Integration Specialist

Implements third-party API integrations with authentication, retries, rate limiting, and webhook verification.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/singhaganesh/Urban-assist --skill api-integration-specialist-singhaganesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: API Integration Specialist
Source: https://github.com/singhaganesh/Urban-assist/tree/main/.cursor/skills/api-integration-specialist
Command: npx skills add https://github.com/singhaganesh/Urban-assist --skill api-integration-specialist-singhaganesh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Integrating external APIs like Stripe, Twilio, or SendGrid often leads to fragile code: leaked API keys, unhandled rate limits, missing retries, and unverified webhooks. This Skill provides production-grade patterns for building robust, secure API clients and integrations. ## Core Features & Use Cases - Authentication & Security: Implements OAuth 2.0 flows, API key management via environment variables, and HMAC webhook signature verification. - Resilience Patterns: Provides exponential backoff retry logic, client-side rate limiters, structured error types, and timeout handling. - Integration Patterns: Includes REST client class templates, cursor-based pagination generators, and ready examples for Stripe payments, SendGrid email, and Twilio SMS. - Use Case: When adding Stripe payments to a Next.js app, use this Skill to scaffold a payment intent flow with verified webhook handling and retry-safe request logic. ## Quick Start Ask the AI to integrate the Stripe API into your app with proper authentication, error handling, and webhook signature verification.

Frequently Asked Questions about API Integration Specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a third-party REST API into my application?

Create an API client class that centralizes the base URL, authentication headers, and timeout settings, then expose resource methods like get, create, update, and delete. Wrap requests in retry logic with exponential backoff and transform raw responses into your internal data model.

How to handle API rate limits and retries in JavaScript?

Implement a client-side rate limiter that tracks request timestamps within a time window and delays calls when the limit is reached. Combine it with exponential backoff retries that only retry server errors (5xx), waiting 1s, 2s, then 4s between attempts.

How do I verify Stripe webhook signatures?

Compute an HMAC-SHA256 hash of the raw request body using your webhook secret and compare it to the signature header using a timing-safe comparison. Always use the raw body, not the parsed JSON, and reject requests with invalid signatures with a 401 response.

Does OAuth 2.0 work for server-side API integrations?

Yes, the Authorization Code Flow works for server-side apps by generating an authorization URL, redirecting the user, then exchanging the returned code for access tokens using your client ID and secret. Store credentials in environment variables, never in source code.

Why do my API requests fail with timeout errors?

Timeouts occur when endpoints respond slowly, payloads are large, or network connectivity is unstable. Increase timeout values for slow endpoints, use streaming for large responses, implement request cancellation, and log failures with context for diagnosis.

When should I not retry a failed API request?

Do not retry client errors such as 400, 401, or 404, since these indicate problems with the request itself that will not resolve on retry. Only retry server errors (5xx) and rate limit responses (429), and cap the maximum retry count.