How To Use Developer Tools To Determine API Calls

How To Use Developer Tools To Determine API Calls

101
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:54 PM


Objective


When using API with CyberArk Identity, it may be initially difficult to identify what Endpoint URL and Body are required to perform an API Call against the Tenant.

 

For example, a Report may have been created directly within the Identity Admin Portal, but the same data can also be retrieved via API instead of through the Identity UI:


To do this, the correct API Endpoint URL and JSON Body must be identified. To find this, Developer Tools can be leveraged within the Browser Window.



Environment


Identity API

Procedure


The following example will outline the steps to identify the API Endpoint URL and Body for running a Custom Report via API using Google Chrome. However, steps 2-7 below can also be applied to many actions within CyberArk Identity to identify the API information, such as updating a User Account or adding a User to a Role.

 

  1. Navigate to the desired Report, which can be a Built-in Report or a Custom Report, within the CyberArk Identity Admin Portal:



  2. Open Developer Tools within the Browser and select the ‘Network’ Tab:

    Google Chrome: F12 or CTRL+ SHIFT + i
    Firefox: F12 or CTRL+ SHIFT + i
    Microsoft Edge: F12 or CTRL+ SHIFT + i





  3. Whilst keeping Developer Tools open, select the desired Report to run this in CyberArk Identity.

  4. Observe that Developer Tools has captured information based on the Report running. Identify the Row named ‘query?’:





  5. Select this Row followed by the ‘Headers’ tab. The API Endpoint URL can be seen under the ‘Request URL’ Field. In the below example, the Endpoint URL is:

    Please note: the TenantID in the below screenshot and URL has been redacted.

    https://(TenantID).id.cyberark.cloud/RedRock/query




  6. Select the ‘Payload’ Tab, followed by ‘View Source’ next to ‘Request Payload’:




  7. Make a note of the value shown in the ‘Request Payload’, this will be used as the API Body:



  8. Open the API Client, and create a new API call.

    In the Endpoint URL Field, enter the ‘Request URL’ identified in Step 5.
    Please note the TenantID in the below screenshot has been redacted.

    In the Body Field, enter the ‘Request Payload’ Identified in Step 7.




  9. Now run the API Call to query the same data that would be directly outputted from the Report within the Identity Admin Portal. 

    A ‘200 OK’ status should show, showing the API Call was successful, alongside the ‘Response’ containing the data.

    Please note: the data contained within the ‘Response’ and TenantID is redacted in the below screenshot:



    Please note: If a ‘401 Not Authorised’ error is experienced when running the API call. This is likely because the authentication failed because the ‘Bearer Token’ is incorrect or missing, as such the API call was blocked by the Tenant. 

    For more information on how to authenticate via API please see the documentation below:

    https://api-docs.cyberark.com/



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000vWDCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail