All Things Location

 View Only
Expand all | Collapse all

Not Able to Authenticate the API via Postman using the Precisely Postman Collection

  • 1.  Not Able to Authenticate the API via Postman using the Precisely Postman Collection

    Posted 07-15-2024 16:08

    Currently have Basic API membership.

    Downloaded and installed Postman and Precisely's Postman Collection that I had planned to use to extract Precisely's API data. 

    It appears that there is an issue with the authenticatiion of the API in Postman after acquiring the Access Token.

    After clicking "Get Access Token", I successfully acquire a access token.

    Then, I go to the Headers tab and the Access Token is displayed after "Bearer" on the "Authorization" Line.

    Within the instructions, it is stated that I should go to the Authorization API in Postman and paste the Access Token in the POST URL and click send to get the response.

    But, for an Auth Type of OAuth 2.0, I am not readily seeing where to access the Authorization API.

    Upon reading the attached instructions that accompanied the Precisely Postman collection, it appears that there may be an error within the instructions related to authenticating the API.

    I also have attached several screen prints that will provide context.

    Is it possible to provide the correct instructions and also insight as to how to resolve the error?

    Thanks in advance for any insight that will enable resolution of the error!



    ------------------------------
    Lac Will
    President
    Precise Data
    Houston TX
    ------------------------------

    Attachment(s)

    pdf
    ReadMe - Copy.pdf   590 KB 1 version


  • 2.  RE: Not Able to Authenticate the API via Postman using the Precisely Postman Collection

    Employee
    Posted 07-16-2024 05:01

    Hi Lac,

    when I see it correctly from your screenshots you are trying to call the OAuth API twice. You only need to call the OAuth API once with the Basic authentication.

    Once you have the access_token, use this with all the other APIs. So if you want to geocode, add "Authentication": "Bearer access_token" to your geocode request.

    If you still have issues let me know. Happy to jump on a Teams meeting to help.

    Greetings from Germany

    Andreas



    ------------------------------
    Andreas Homa
    Principal Solution Consultant
    Precisely | Trust in Data
    ------------------------------