- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
How do I pass Security Token instead of user credentials in REST API call?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
You can try the following steps.
- Make a login() call using SOAP API to generate the security token
- Pass 'ZSession' + the security token as Authorization key in the call's header
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
You can try the following steps.
- Make a login() call using SOAP API to generate the security token
- Pass 'ZSession' + the security token as Authorization key in the call's header
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Using Security Token with REST API
if the service does not respond with proper error messages but only with the unhelpful {"message":"An unexpected error occurred"}
we only could fix this behaviour by doing a login-call like described here. this did some internal reset-foo and nice error-messages appeared again.
we did not actually use the security-token generated from login() at all - we just called login() for the sake of resetting something internal.