# Heartbeat with protected API's

**URL:** <https://discuss.elastic.co/t/heartbeat-with-protected-apis/195977>\
**Category:** Beats\
**Created:** [August 20, 2019, 5:01pm UTC](https://discuss.elastic.co/t/heartbeat-with-protected-apis/195977 "2019-08-20T17:01:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnnie843](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Johnnie843](https://discuss.elastic.co/u/Johnnie843)\
**Post date:** [August 20, 2019, 5:01pm UTC](https://discuss.elastic.co/t/heartbeat-with-protected-apis/195977/1 "2019-08-20T17:01:15Z")

</div>

Hello Everyone,

We have an application deployed with a bunch of API's exposed. They are protected via Keycloak(OAuth2). Is there a way to authenticate to test the Uptime of the API Url? If not I will always get the forbidden error.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2019, 7:01pm UTC](https://discuss.elastic.co/t/heartbeat-with-protected-apis/195977/2 "2019-09-17T19:01:17Z")

</div>

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