cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
965
Views
0
Helpful
1
Replies

Umbrella Reporting v2 API Python Unauthorized Access

Dvk98
Level 1
Level 1

Hi,

 

recently I am trying to get data from the API Endpoints with Python but it does not seem to work. When I try the example Postman Requests, everything is fine but when I try it with the corresponding python examples (https://github.com/CiscoDevNet/cloud-security/tree/master/Umbrella/Samples/Auth/client-samples/python)

I always get "Unauthorized" as response. The Bearer Token that gets generated in the python examples seems always correct to me, because when I copy that back to Postman the requests work there.

I wonder if this has anything to do with routing to https://api.us.reports.umbrella.com, because thats the endpoint I always get directed at (I dont know if this is any different than https://api.eu.reports.umbrella.com though). I am missing something obvious?

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Did you had chance to check the learning lab with step by step instructions -https://developer.cisco.com/learning/tracks/cloud-edge-security/cisco-umbrella/Umbrella-Reporting-APIs-Intro/step/1