What is a serverless API?
Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.
What is a serverless API?
A serverless API is an application interface built with managed services that accept requests, apply identity and traffic controls, invoke backend logic, and return or schedule a result without requiring the application team to manage an API server fleet.
How this topic fits
APIs & integration
Design REST, HTTP, WebSocket, and GraphQL interfaces with explicit contracts, authorization, throttling, and backend integrations.
The serverless API request path
A client resolves a domain, establishes a secure connection, and sends a request to an API front door. The API layer matches a route, authenticates or authorizes the caller, validates or transforms the request, and invokes a backend integration.
The backend might be a Lambda function, another HTTP service, or a direct AWS service integration. The response path must translate backend outcomes into a stable public contract without leaking internal errors or service-specific details.
Routes, methods, schemas, status codes, domains, and versioning define the contract clients depend on.
Authentication, authorization, throttling, validation, and abuse protection constrain who can do what.
Functions, workflows, services, and data stores perform the business operation behind the route.
Choose synchronous or asynchronous work
Keep work synchronous when the client needs an immediate outcome and the dependencies can meet the latency and availability target. Bound timeouts and define which failure is safe to expose or retry.
Accept work asynchronously when it can take longer, needs buffering, or must survive downstream pressure. Return an operation identifier or accepted status, persist the request safely, and provide a way to observe completion or failure.
Secure the API boundary
Authenticate the caller with a mechanism that matches the audience, then authorize the specific resource and action. Treat authorization as a business rule, not merely proof that a token is valid.
Validate payloads, constrain sizes and content types, protect sensitive fields, rate-limit abusive patterns, and ensure the integration role can reach only the backend actions and resources required by that route.
Operate the API as a customer path
Measure availability, latency percentiles, error classes, throttles, authentication failures, backend saturation, and the business outcome the route exists to produce. Correlation identifiers should connect gateway logs, function logs, traces, and downstream work.
Test timeouts, malformed input, dependency failure, quota pressure, duplicate requests, and deployment rollback. Managed scaling helps with capacity, but the complete request path is only as resilient as its weakest dependency and recovery decision.
Go deeper with AWS
Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.
Next steps
Continue with the concepts that most directly shape this decision.
What is Amazon API Gateway?
Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.
What is AWS AppSync?
Understand managed GraphQL and event APIs with AWS AppSync, including schemas, resolvers, data sources, real-time updates, caching, and authorization.
Serverless identity with Cognito
Learn user pools, identity pools, tokens, federation, API authorization, tenant boundaries, and secure identity flows for web and mobile applications.
What is AWS Lambda?
Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.
Questions about this topic
Browse all serverless concepts
Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.
What is serverless?
Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.
What is AWS Lambda?
Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.
What is serverless architecture?
Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.
AWS serverless security
A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.
What is agentic AI?
Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.
What is cloud computing?
Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.
What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
What is a serverless API?
Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.
What are serverless workflows?
Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.
What is Amazon API Gateway?
Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.
What is Amazon EventBridge?
Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.
Make the next serverless decision explicit.
Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.