Call HTTP API

Call an HTTP/HTTPS API and return the API response

Make an HTTP/HTTPS request to an external API and return the response.
The workflow takes an Axios (Node.js-based HTTP client) config as input and returns the HTTP status code, header, and response body in the `Payload` object.

Launch Stack
< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/call-http-api/cd step-functions-workflows-collection/call-http-api

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Additional resources

Created by:

Shing Lyu

Shing Lyu

Shing Lyu is a software architect, developer and book author. He is passionate about Rust, AWS and open source software.

Follow on LinkedIn