# I need some service to see if my api is working

**URL:** <https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [September 5, 2023, 1:42pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436 "2023-09-05T13:42:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.felippe5965](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/g.felippe5965/32/50546_2.png) [@g.felippe5965](https://community.auth0.com/u/g.felippe5965)\
**Post date:** [September 5, 2023, 1:42pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436/1 "2023-09-05T13:42:24Z")

</div>

Hello,

I’m developing a system for my company where I need to show if some services are online and I can`t see on Auth0 any route that I can just call and give me this. I want something that I don`t need to pay or spend a lot of money because of that.

Anyone can help me please?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 5, 2023, 6:12pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436/3 "2023-09-05T18:12:24Z")

</div>

Hi @g.felippe5965,

To check if your API is working, you should request an access token for that API and use it with the API.

> **[Call Your API Using the Client Credentials Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow)**
>
> Learn how to call your API from a machine-to-machine (M2M) application using the Client Credentials Flow.

Alternatively, you could [validate the access token](https://auth0.com/docs/secure/tokens/access-tokens/validate-access-tokens).

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![g.felippe5965](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/g.felippe5965/32/50546_2.png) [@g.felippe5965](https://community.auth0.com/u/g.felippe5965)\
**Post date:** [September 13, 2023, 12:05pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436/4 "2023-09-13T12:05:24Z")

</div>

With this solution, I will have to request a M2M token many time. This will be expensive, right?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 18, 2023, 6:08pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436/5 "2023-09-18T18:08:32Z")

</div>

Hi @g.felippe5965,

Each time you need to check whether your API is working, you will have to request a token. This will only be expensive if you are making too many requests to get an M2M access token.

Keep in mind that you could cache the access token for the duration of its lifetime, to avoid repeated M2M auth calls. Additionally, you can check your monthly M2M auth usage on [support.auth0.com](http://support.auth0.com).

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 2, 2023, 6:09pm UTC](https://community.auth0.com/t/i-need-some-service-to-see-if-my-api-is-working/115436/6 "2023-10-02T18:09:21Z")

</div>

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