api-gateway
by byungkyu
DevOps & CloudBrief
API gateway for calling third-party APIs with managed auth.
Description
What This Skill Does
A passthrough proxy that routes API calls to 100+ third-party services using managed OAuth connections from Maton. You authenticate once with a Maton API key, and the gateway injects the correct OAuth token for each target service. Each service requires explicit OAuth authorization through Maton's connect flow.
Eliminates per-service OAuth setup by routing all requests through one endpoint, so you manage one API key instead of separate credentials for each integration.
When to Use It
- Posting Slack messages from an AI agent without managing OAuth tokens
- Reading Gmail threads in a script using a single API key
- Syncing new HubSpot contacts into a spreadsheet on a schedule
- Querying Salesforce records with SOQL from a cron job
- Creating Notion pages when a webhook fires from another service
Example Workflow
User asks: Post 'Deploy complete' to a Slack channel
- 1
Check for an active Slack connection via ctrl.maton.ai/connections
- 2
If no active connection exists, create one and open the returned URL to complete OAuth
- 3
Send POST to gateway.maton.ai/slack/api/chat.postMessage with channel ID and text
- 4
Gateway injects the Slack OAuth token and forwards the request to Slack's API
Message 'Deploy complete' appears in the specified Slack channel
Requirements
- Maton account (sign up at maton.ai)
- MATON_API_KEY environment variable (from maton.ai/settings)
- OAuth authorization for each third-party service completed through Maton's connect flow
Installation
clawhub install byungkyu/api-gatewayRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.