Clarity

 View Only
Expand all | Collapse all

403 Forbidden error when trying to access the Clarity REST API

  • 1.  403 Forbidden error when trying to access the Clarity REST API

    Posted Feb 07, 2024 12:56 PM

    Hello,
    I am trying to retrieve information from Clarity REST API's using Python . So, as a part of this I just tried to get response code from an URL.
    When I am trying to get response from an URL regarding clarity URL like this,"https://clarity-url/rest/describe/index.html#!".I am getting a response of 403 [FORBIDDEN] error .But when I am trying to get a response from an URL like this, "https://clarity-url/", getting response of 200.
    However, I am able to browse the both URL's.
    Could anyone help me to resolve this issue.



  • 2.  RE: 403 Forbidden error when trying to access the Clarity REST API

    Broadcom Employee
    Posted Feb 08, 2024 02:21 AM

    Hello Lakshmi,

    The URL <server>/niku/rest/describe/index.html is not meant to be used by the REST API itself, but it is the "API Documentation URL" which will show you the available Public REST APIs and their documentation and you will be able to try them using the page itself.

    From that page you will see the actual URLs that you should be using.

    I hope this helps.

    --Marc