PureConnect

 View Only
Discussion Thread View
  • 1.  How to generate sessionid CSRF token and cookie for ICWS API

    Posted 09-18-2019 16:02
    Hello everyone,

    I'm using Postman to test API calls to ICWS.
    To do this successfully, I need to add the following to my Headers

    sessionid
    icwsCsfrToken
    set-cookie

    Any idea how to generate these ?

    GET http://testserver:8018/icws/configuration/users/jsmith
    returns this message...
    "message"
    : "A session ID is needed for this request, but none was provided."

    If I add a random sessionID
    GET http://testserver:8018/icws/123454678/configuration/users/jsmith
    returns this message...
    "message": "A session ID was provided with the request, but it is invalid or the session has already been closed."

    I'm assuming there is a specific Authorization Type I'm supposed to use for a PureConnect Server, I'm not really sure what to use or how to get these values ahead of making the actual API call.

    Thanks in advance,

    #Implementation
    #Integrations
    #SystemAdministration

    ------------------------------
    William Wyszomirski
    Excellus Health Plan Inc
    ------------------------------


  • 2.  RE: How to generate sessionid CSRF token and cookie for ICWS API
    Best Answer

    Posted 09-18-2019 16:11
    https://help.genesys.com/developer/cic/docs/icws/webhelp/ConceptualContent/GettingStarted_Connecting.htm#top

    This talks about establishing a basic connection with credentials to receive your session ID and token.

    ------------------------------
    Aaron Lael
    State of Utah
    ------------------------------



  • 3.  RE: How to generate sessionid CSRF token and cookie for ICWS API

    Posted 09-20-2019 11:49
    Thank you @Aaron Lael for the push to go back to the Docs, I was rushing too much and needed to take a step back.
    Part of my issue was not being familiar with POSTMAN, and how to apply the ICWS information to it.

    Also, Thanks @DEEPTI SRIVASTAVA, for posting attachments in your ICWS post back in April.

    Using the Doc and the info in Deepti's post, I was able to use POSTMAN to retrieve the ININ-ICWS-CSRF-Token, ININ-ICWS-Session-ID, and Set-Cookie.

    What it came down to, was that I was not sending any BODY with the original POST method. ​​

    ------------------------------
    William Wyszomirski
    Excellus Health Plan Inc
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources