Go to All Forums

Monitoring REST API with Bearer Token

I want to monitor a REST API with GET method. This API has a bearer token. When i set the bearer token to "HTTP Request Header" field, i get "This url is forbidden." error. How i can configure bearer token in REST API alarm. (You can see below how can i set the token)

 

HTTP Configuration;

HTTP Method: GET

HTTP Request Header; Authorization, bearer XXXXXXXXX

Like (2) Reply
Replies (1)

Re: Monitoring REST API with Bearer Token

Hello,

It looks like your API uses OAuth for authorization. You can register Site24x7 as a client on your OAuth provider using this guide: https://www.site24x7.com/help/admin/oauth2.html

Once Site24x7 has been registered as a client, you can select your OAuth provider in the Authentication field in the monitor configuration. Site24x7 will automatically retrieve tokens and submit them in the HTTP request header.

Regards,

Kurian

Like (0) Reply

Was this post helpful?