# Call API requests from frontend instead of backend

**URL:** <https://devforum.zoom.us/t/call-api-requests-from-frontend-instead-of-backend/73305>\
**Category:** API and Webhooks\
**Created:** [July 31, 2022, 11:31pm UTC](https://devforum.zoom.us/t/call-api-requests-from-frontend-instead-of-backend/73305 "2022-07-31T23:31:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![espire9](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@espire9](https://devforum.zoom.us/u/espire9)\
**Post date:** [July 31, 2022, 11:31pm UTC](https://devforum.zoom.us/t/call-api-requests-from-frontend-instead-of-backend/73305/1 "2022-07-31T23:31:06Z")

</div>

Is it possible to call API requests from frontend (using React) instead of backend (NextJS)?  
If I call in from client-side I am getting CORS errors.

I simply want to have a button for creating new meeting (call API endpoint /users/:userId/meetings).

Right now I am using NextJS getServerSideProps method to call API for getting tokens, then another API call with retrieved token for creating a meeting. It works, but because it is server-side rendered, API calls can not be triggered after click on some button.

Also I am wondering about case - when some user clicks on button, it creates new access token and in exact same time some other users do the same, so second user overwrite access token and the first one user will not be able to create meeting, because it will throw an error.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 4, 2023, 3:07pm UTC](https://devforum.zoom.us/t/call-api-requests-from-frontend-instead-of-backend/73305/2 "2023-08-04T15:07:31Z")

</div>

Closed on August 4, 2023, 3:07pm UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
