All project notes

Engineering

HTTP events for incoming calls

CandyNumber declared the HTTP endpoint that handed incoming Twilio voice requests to Lambda.

Twilio sent an HTTP POST to API Gateway, which invoked the CandyNumber Lambda handler to process the incoming call as a lead.
Illustrative diagram

CandyNumber wired a Twilio voice callback to a Lambda handler with an http event. The definition specified the HTTP method and path, and the framework translated that declaration into an API Gateway route connected to the handler. The JavaScript handler was the entry point for processing the incoming call as a lead. SalesCandy kept the endpoint and its handler together in version control by importing the function definition into the service’s serverless.yml.

SalesCandy Git evidence — SugarRush/CandyNumber at 1ae4995 (25 October 2019), serverless.yml and config/function.yml. Lambda events