- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-30-2026 11:05 AM
Hi,
looking for API for adding exceptions, is it exists ?
I'd like to add programmatically exceptions which are done by UI > Settings > Exception Configuration > Legacy Agent Exceptions > Add Rule
01-30-2026 01:36 PM
Hello @ITApps ,
Greetings for the day.
Based on internal documentation and support cases, there is currently no public-facing API endpoint available to programmatically manage (add, update, or insert) Legacy Agent Exceptions in Cortex XDR or XSIAM.
Design Limitation
This functionality is intentionally designed to be managed exclusively through the Cortex XDR management console user interface to ensure centralized control and consistency.
New / Upcoming API
There is a dedicated Agent Exceptions API that has been released (or is scheduled for release depending on your tenant region), but its primary purpose is bulk data export, auditing, and environment cleanup rather than programmatically adding new rules.
Partial Alternatives
For simple hash allowlisting, some users have noted the core-add-exclusion command; however, it is limited in scope compared to the full Legacy Agent Exceptions module, which supports paths, signers, and specific protection modules.
If programmatic access is a mandatory business requirement for your organization, it is recommended to contact your Palo Alto Networks Account Team or Solutions Consultant to submit a formal Feature Request (FR).
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Thanks & Regards,
S. Subashkar Sekar
02-01-2026 02:56 AM
Hello @susekar ,
thank you for the answer, I have two question:
- where can I get more info about Agent Exceptions API ?
- what is core-add-exclusion command ?
02-02-2026 04:25 AM
Hello @ITApps ,
Thank you for your message.
You may review the latest updates in the official Palo Alto Networks Cortex XDR knowledge base documentation.
The core-add-exclusion command is an automation utility used within Cortex XSIAM and XSOAR playbooks. It is part of the Cortex Core (REST API) integration, which enables the automation engine to communicate with the Cortex server.
Primary Function:
This command is specifically designed for hash allowlisting.
If this information addresses your query, please let us know by clicking Like and selecting “Mark this as a Solution.”
Thanks & regards,
S. Subashkar Sekar
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!

