Problem when authenticating token in API Call. Smartsheet Bridge
When I run a Make API Call I get an 401 error, Invalid Token.
I have configured the HTTP request body as per specifications from the website API documentation; it's a POST request, and the actual token has been put both within commas and without it.
I believe the token is not the problem because I tested the code in IDEs and it works fine, so I would like to know what's missing for me to configure.
Best regards,
Answers
-
Hello @lschek1
To confirm, did you set up a profile for API calls as part of the API call configuration?
Kelly
-
Hello Kelly, I did set up the API configuration, I put the base URL (for this case, it is to add a tracking to a platform), but I'm not sure if I should add more info, perhaps? I tried adding the token in secret headers, but I still get an invalid token error.
As for the Call API utility, it is set in POST, there is no Endpoint or Form Parameters included.
This specific website says to specify the URL and push a JSON body to add the information I need. For example, this is how I would set it up successfully.
-
I'm not certain this is a profile problem - all I know is I get non-descript error codes from profile problems. Here is my profile
Here is the rest of the set-up for one of my POST calls. Most of the problems I've had are caused by my endpoint text.
My HTTP request body parameters follow the relevant API document syntax for this particular routine
If this doesn't help, mark the answer as unanswered or whatever the choice is to that effect. Then someone else will step in with better solutions
Kelly
PS Please @mention if you reply to help filter your email from others in my inbox. 😊
-
Unfortunately I'm still unable to get this POST request to work. I tried changing parameters but still wasn't successful. I think it has to do with the own API docs and the http body.
At least I managed to make a GET request. or this case, I only needed to add the form parameters and the URL body.
I am grateful for your help @Kelly Moore
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 351 Global Discussions
- 198 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 443 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 36 Webinars
- 7.3K Forum Archives