XDR API for Policy Management

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

XDR API for Policy Management

L0 Member

Is there an API in XDR for Policy Management?

I'm trying to get the list of policies, profiles and their rules.


There is /public_api/v1/endpoints/get_policy (Get Policy • Cortex XDR REST API • Reader • Palo Alto Networks documentation portal)

However, this just gives the Policy Name for a specific Endpoint.  


L4 Transporter

Hi @RishitShah, thanks for reaching us using the Live Community.

The public API is limited for the information you need.

But, the console XDR console itself work with API calls to the backend, so you can pickup the API URL and headers from the requests when you access to any location.

For example, opening "Policy Rules" with the browser inspect enabled shows the following entry name:


If you select it, look at the headers and you can copy them to the platform needed to do the query. This a screenshot from my Postman, not all the headers are needed, you can play there:


You can do this same API workaround with any section of the console.


NOTE: this will work only if you have a current web session to the console.


If this works for you, please mark this question as the solution.


L0 Member

Hi @jmazzeo I tried the approach you suggested, however, in response I receive a Sign in Page.



  • 2 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!