• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless, inc.

AWS Simple HTTP Endpoint example in NodeJS with Typescript

by

This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.

  1. AWS Simple HTTP Endpoint example in NodeJS with Typescript

Serverless Framework Node with Typescript HTTP API on AWS

Note: TypeScript is intentionally held at 5.x — the TypeScript 7 native compiler isn't yet supported by the surrounding ecosystem tooling (checked 2026-07-20).

This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v4.

This template does not include any kind of persistence (database). For more advanced examples, check out the serverless/examples repository which includes Typescript, Mongo, DynamoDB and other examples.

Setup

Run this command to initialize a new project in a new working directory.

npm install

Usage

Deploy

$ serverless deploy

Invoke the function locally.

serverless invoke local --function hello

Invoke the function

curl https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/

Contents

  • Serverless Framework Node with Typescript HTTP API on AWS
  • Setup
  • Usage

Related

GuidesPluginsExamplesSlack CommunitySupport