- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-06-2026 11:50 PM
In the API reference, it states that you must have Instance Administrator permissions to run the endpoint /public_api/v1/correlations/get.
Is it possible to create a custom role for the API key that has sufficient permissions to execute this endpoint?
Do you know any other way to retrieve the query from a specific correlation rule?
04-08-2026 08:11 AM
Hello @J.MuozTriguero ,
Greetings for the day.
No, it is currently not possible to create a custom role with sufficient permissions to execute the /public_api/v1/correlations/get endpoint. This function is hard-coded by design to require either the built-in Instance Administrator or Account Admin roles.
Attempts to use custom roles—even those granted the highest visible permissions (such as "View/Edit" for "Rules" or "Public API")—will result in a 403 Forbidden error with the message “Insufficient permissions for api key.” This is a known product limitation, and feature requests (such as CXDR-I-2505) have been raised to enable more granular RBAC for administrative API endpoints in the future.
If you cannot use the Instance Administrator role for an API key, here are alternative methods to retrieve the XQL query from a correlation rule:
Users with sufficient RBAC permissions (typically Detections & Threat Intel > Detections > Rules set to View or View/Edit) can manually retrieve the query via the web interface:
Note:
If a rule uses a dataset that does not exist in the tenant (for example, a rule imported from the Marketplace for a source not yet ingested), it will be hidden from non-admin users. Only Instance Administrators can view rules linked to non-existent datasets.
If your goal is automation, you must use an API key assigned the Instance Administrator role.
You can verify connectivity by testing a standard endpoint:
The /public_api/v1/correlations/get endpoint is often disabled by default for new tenants. If you are an Instance Administrator and still receive errors indicating the resource is unavailable, you may need to contact support to have the internal server-side feature flag enabled for your tenant.
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
04-08-2026 08:11 AM
Hello @J.MuozTriguero ,
Greetings for the day.
No, it is currently not possible to create a custom role with sufficient permissions to execute the /public_api/v1/correlations/get endpoint. This function is hard-coded by design to require either the built-in Instance Administrator or Account Admin roles.
Attempts to use custom roles—even those granted the highest visible permissions (such as "View/Edit" for "Rules" or "Public API")—will result in a 403 Forbidden error with the message “Insufficient permissions for api key.” This is a known product limitation, and feature requests (such as CXDR-I-2505) have been raised to enable more granular RBAC for administrative API endpoints in the future.
If you cannot use the Instance Administrator role for an API key, here are alternative methods to retrieve the XQL query from a correlation rule:
Users with sufficient RBAC permissions (typically Detections & Threat Intel > Detections > Rules set to View or View/Edit) can manually retrieve the query via the web interface:
Note:
If a rule uses a dataset that does not exist in the tenant (for example, a rule imported from the Marketplace for a source not yet ingested), it will be hidden from non-admin users. Only Instance Administrators can view rules linked to non-existent datasets.
If your goal is automation, you must use an API key assigned the Instance Administrator role.
You can verify connectivity by testing a standard endpoint:
The /public_api/v1/correlations/get endpoint is often disabled by default for new tenants. If you are an Instance Administrator and still receive errors indicating the resource is unavailable, you may need to contact support to have the internal server-side feature flag enabled for your tenant.
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
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!

