# Getting new API ID and automatically inserting it in React application to make requests

**URL:** <https://forum.serverless.com/t/getting-new-api-id-and-automatically-inserting-it-in-react-application-to-make-requests/14373>\
**Category:** Serverless Architectures\
**Created:** [March 14, 2021, 2:32pm UTC](https://forum.serverless.com/t/getting-new-api-id-and-automatically-inserting-it-in-react-application-to-make-requests/14373 "2021-03-14T14:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bt14381](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bt14381](https://forum.serverless.com/u/bt14381)\
**Post date:** [March 14, 2021, 2:32pm UTC](https://forum.serverless.com/t/getting-new-api-id-and-automatically-inserting-it-in-react-application-to-make-requests/14373/1 "2021-03-14T14:32:05Z")

</div>

I want to automate deployment of my full stack: a react single page front end served from s3 with a serverless, lambda + api gateway + dynamodb etc.

I want to avoid having to manually enter the new api id in each of the react files after initial back end deployment.

Is there an existing service/ standard pipe line for achieving this or will I need to write a little program myself?

I am agnostic regarding whether to use http or rest api, so if there is a simpler solution using either option, that would be preferable.

Thanks!
