# API Integration Provider Connectors

> Implements third-party API integrations: payment and SMS connectors with webhooks, API keys, and sandbox testing. Use when working with provider connectors, webhook implementation or when the user mentions provider connectors, webhook implementation.

- Skill: `opknock/api-integration-provider-connectors` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-integration-provider-connectors`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-integration-provider-connectors/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-integration-provider-connectors

---


Implements third-party API integrations: payment and SMS connectors with webhooks, API keys, and sandbox testing.

## Agentic Workflow: Read -> Reason -> Act (api-integration-provider-connectors)

You are **Api Integration Provider Connectors** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — backend context for `api-integration-provider-connectors`
- Domain: Implements third-party API integrations: payment and SMS connectors with webhooks, API keys, and sandbox testing.
- **provider-connectors**: Connect payment and messaging providers using their official CLIs and SDKs — `stripe login`
- **webhook-implementation**: Receive, verify, and process webhooks from providers — `ngrok http 3000`
- Check `knowledge` and `prerequisites: node.js, python, ngrok, redis`

### 2. Reason — think for `api-integration-provider-connectors`
- For `provider-connectors`: Connect payment and messaging providers using their official CLIs and SDKs — decide which checks to run
- For `webhook-implementation`: Receive, verify, and process webhooks from providers — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-integration-provider-connectors` tools
- Tools: `Glob`, `Grep`, `Read`, `Stripe`, `Twilio` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-integration-provider-connectors:9ed0828d`

# API Integration (Implementation)

Builds working integrations with third-party providers using official CLIs and sandboxes.

## When to Use
- Adding Stripe, Twilio, or similar providers
- Setting up local webhook development
- Migrating from test to live mode

## Real Commands

```bash
# Stripe setup
stripe login
stripe create product --name 'T-Shirt'
stripe create price --product prod_123 --unit-amount 1999 --currency usd

# Local webhook dev
ngrok http 3000
stripe listen --forward-to localhost:3000/webhooks/stripe
stripe trigger checkout.session.completed

# Twilio
brew tap twilio/brew && brew install twilio
twilio login
twilio api:core:messages:create --from +15017122661 --to +15558675310 --text 'Hello'
```

## Key Management
- Store keys in a secret manager, never in code
- Use test keys in development

## Testing
Trigger every webhook event in sandbox mode and verify processing end to end.

## Best Practices
- Verify webhook signatures
- Respond 2xx fast, process asynchronously
- Keep idempotency keys on money moves

## Capabilities

### provider-connectors
Connect payment and messaging providers using their official CLIs and SDKs

**Parameters:**
- `amount` (string): Amount in minor units
- `currency` (string): Currency code

**Commands:**
- `stripe login`
- `stripe create product --name 'T-Shirt'`
- `stripe create price --product prod_123 --unit-amount 1999 --currency usd`
- `stripe payment_intents create --amount 1999 --currency usd`
- `twilio api:core:messages:create --from +15017122661 --to +15558675310 --text 'Hello from Twilio'`

**Examples:**
- stripe create price --product prod_123 --unit-amount 1999 --currency usd
- stripe payment_intents create --amount 1999 --currency usd --automatic-payment-methods[enabled]=true
- twilio api:core:messages:create --from +15017122661 --to +15558675310 --text 'Order shipped'

### webhook-implementation
Receive, verify, and process webhooks from providers

**Parameters:**
- `port` (string): Local port
- `event` (string): Webhook event type

**Commands:**
- `ngrok http 3000`
- `stripe listen --forward-to localhost:3000/webhooks/stripe`
- `stripe trigger checkout.session.completed`
- `curl -s http://localhost:4040/api/tunnels | python -m json.tool`
- `curl -s -X POST http://localhost:3000/webhooks/health -o /dev/null -w '%{http_code}'`

**Examples:**
- ngrok http 3000 --subdomain api-dev
- stripe listen --forward-to localhost:3000/webhooks/stripe --events checkout.session.completed
- curl -s http://localhost:4040/api/tunnels | python -m json.tool

## References
- [Stripe CLI Reference](https://docs.stripe.com/cli)
- [Twilio CLI](https://www.twilio.com/docs/twilio-cli)
- [ngrok Docs](https://ngrok.com/docs)

