cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1051
Views
2
Helpful
1
Replies

Umbrella Reporting api v2 redirects to another hostname

Nishith
Cisco Employee
Cisco Employee

While accessing Umbrella Reporting API(reports.api.umbrella.com), it is redirecting to another hostname(api.us.reports.umbrella.com) without passing the required bearer token in the header.

 

It is the behaviour of all HttpClients implementation.

 

Hence, while accessing the API, it is returning as "401 Unauthorised".

 

In Postman , if the option "Follow Authorisation Header" is selected, then we are getting successful response.

 

How do we acheive it through code. Tried the exact java sample available in Github. it is failing.

1 Reply 1

yaronca
Cisco Employee
Cisco Employee

Hi there,

Please see the following guidance: https://developer.cisco.com/docs/cloud-security/#!reporting/http-redirects-and-request-authorization-header

In addition, please note that the above points to the new Umbrella API (reporting v2 will be EOL this September 2023). You can find guidance for the new reporting  endpoints by following this link. The reference to these endpoints can be found here

Thanks,
Yaron

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: