Skip to content
Development
Skill

/api-gateway

Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API

From plugin
agent-plugins
85734 skills8 MCP
Install
$ npx -y skills add awslabs/agent-plugins --skill api-gateway --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/api-gateway

Context preview

The summary Claude sees to decide when to auto-load this skill.

Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API

SKILL.md

api-gateway.SKILL.md
name: api-gateway
description: >
  Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket).
  Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API.
  Also covers troubleshooting API Gateway errors (4xx, 5xx, timeout, CORS failures) and IaC templates containing API Gateway resources.
  For general REST API design unrelated to AWS, do not trigger.
metadata:
  tags: [api-gateway, serverless, aws, rest-api, http-api, websocket]

Amazon API Gateway Development

Expert guidance for building, managing, governing, and operating APIs with Amazon API Gateway. Covers REST APIs (v1), HTTP APIs (v2), and WebSocket APIs.

How to Use This Skill

When answering API Gateway questions:

1. Read the relevant reference file(s) before responding, do not rely solely on this summary 2. For tasks spanning multiple concerns (e.g., "private API with mTLS and custom domain"), read all relevant references 3. When the user needs IaC templates, consult `references/sam-cloudformation.md` or `references/sam-service-integrations.md` and provide complete, working SAM/CloudFormation YAML 4. Always mention relevant pitfalls and limits that affect the user's design

Quick Decision: Which API Type?

Choose the right API type first. This decision affects every downstream choice.

**REST API** is the full-featured API management platform for enterprises. It provides the governance, security, monetization, and operational controls that organizations need to build, publish, and manage APIs at scale, including usage plans with per-consumer throttling and quotas, API keys, request validation, WAF integration, resource policies, caching, canary deployments, and private endpoints.

**HTTP API** is the lightweight, low-cost proxy optimized for simpler API workloads. It offers ~70% lower cost and lower latency but trades away the API management features. Choose HTTP API when you need a fast, lightweight proxy to Lambda or HTTP backends and don't require the enterprise controls above.

| Factor | REST API (v1) | HTTP API (v2) | WebSocket API | | ------------------------- | -------------------------------------- | ---------------------------------------------- | ------------------------------ | | **Positioning** | **Full API management** | **Low-cost proxy** | **Real-time bidirectional** | | Cost | Higher | ~70% cheaper | Per-message pricing | | Latency | Higher | Lower | Persistent connection | | Max timeout | 50ms-29s (up to 300s Regional/Private) | 30s hard limit | 29s | | Payload | 10 MB | 10 MB | 128 KB message / 32 KB frame | | **API Management** | | | | | Usage plans/API keys | Yes | No | No | | Request validation | Yes (JSON Schema draft 4) | No | No | | Caching | Yes (0.5-237 GB) | No | No | | Custom gateway responses | Yes | No | No | | VTL mapping templates | Yes | No (parameter mapping only) | Yes | | **Security & Governance** | | | | | WAF | Yes | No (use CloudFront + WAF) | No | | Resource policies | Yes | No | No | | Private endpoints | Yes | No | No | | mTLS | Yes (Regional custom domain only) | Yes (Regional custom domain only) | Via CloudFront viewer mTLS | | **Auth** | | | | | Lambda authorizer | Yes (TOKEN + REQUEST) | Yes (REQUEST only, simple + IAM policy format) | Yes (REQUEST on $connect only) | | JWT authorizer | No (use Cognito authorizer) | Yes (native) | No | | Cognito authorizer | Yes (native) | Use JWT authorizer | No | | **Operations** | | | | | Canary deployments | Yes | No | No | | Response streaming | Yes | No | No | | X-Ray tracing | Yes

Read more
Ships withagent-plugins

Read this in other languages: 日本語 Generative AI can make mistakes. You should consider reviewing all output and costs generated by your chosen AI model and agentic coding assistant. See AWS Responsible AI Policy.

Get the whole plugin

Other skills on agent-plugins.