# Can we call REST API from JS policy

**URL:** <https://forum.keycloak.org/t/can-we-call-rest-api-from-js-policy/9712>\
**Category:** Miscellanaeous\
**Created:** [June 22, 2021, 5:46pm UTC](https://forum.keycloak.org/t/can-we-call-rest-api-from-js-policy/9712 "2021-06-22T17:46:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nani2ratna](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/nani2ratna/32/1893_2.png) [@nani2ratna](https://forum.keycloak.org/u/nani2ratna)\
**Post date:** [June 22, 2021, 5:46pm UTC](https://forum.keycloak.org/t/can-we-call-rest-api-from-js-policy/9712/1 "2021-06-22T17:46:41Z")

</div>

Hi,  
We are exploring JS policy and checking what can acheived with JS policies.  
Can we call REST API to fetch more information from JS policy. If so can you provide any example or push me to right direction

Thanks
