Forum Discussion

bjornliow's avatar
bjornliow
New Contributor III
2 months ago

REST API Execute LogonAndReturnCookie

I am trying to determine if we are using any REST APIs. We were instructed to run a logonandreturncookie via Postman.

https://documentation.onestream.com/1384528/Content/PDFs/REST_API_Implementation_Guide.pdf

I followed the instructions in page 26 and ran into this error message: Error: Invalid character in header content ["Authorization"]

I entered "{{webapi_access_token}}", similar to the screenshot in page 27. I hovered over the token and saw a message stating it's not defined.

 


Where should I set up this variable or is there an issue with my params/body?

 

1 Reply

  • JackLacava's avatar
    JackLacava
    Icon for OneStream Employee rankOneStream Employee

    That needs to contain a token retrieved from your authentication provider (Azure, Okta, or PingFederate). How you retrieve the token will depend on the specific provider. Once you have it, you can use it to send requests to OneStream.