I’m trying to call the MicroStrategy REST API from KNIME.
When I use Postman, I can successfully call the endpoint and see the JSON body in the response.
Question:
Why does Postman correctly show the JSON body, but KNIME GET Request only returns “?” (or 401/204 depending on parameters)?
Is there something specific in KNIME’s GET Request node configuration (headers, encoding, body column, etc.) that I might be missing?
After checking the error cause, I got the message shown in the screenshot.
It says “the user’s session has expired” – does this mean the MSTR token has expired?
That should not be the case, because I have already refreshed the token. I really don’t know what is going wrong here.
hmm seems like the token is not send correctly to the API. How do you pass it?
It should be send via the Request Headers, which you can edit in the “Request Headers” Pane.
Just click on “add header parameter” at the botton. Then enter the key “X-MSRT-AuthToken” and as the key the token.
I am calling POST /api/auth/login via a POST Request to obtain the MSTR token and then store it as a flow variable. Afterwards, I use a GET Request to call GET /api/searches/results.
The configuration is shown in the screenshot below. So in theory, the token ID and Project ID should not be incorrect, since I already tested with the same information in Postman and it worked successfully.
If needed, I can provide the workflow to you. Thank you.