Bridge - Error with POST call to API - Invalid Body
I'm trying to make a post call to an API using the "Call API" action within Bridge. Unfortunately, every time I try this action, it fails with an "Invalid Payload" response. I've tested the payload in Postman, and it seems to be working correctly.
The API I'm using is a "POST" to a Slack Webhook. (It will automatically post in a specific channel when correctly formatted data is posted to that particular URL.)
I've tried running the body through a Compose String, I've tried pasting it straight into the "HTTP Request Body" field, and I've even tried simplifying it as much as possible, to basically a one word post with no formatting.
Slack Webhook URLs include the auth information in the POST URL, so there is no need to add additional headers.
Screenshot from postman - this works
Best Answer
-
Hey @abrae005
It could be your profile setup that is causing your issues. If you haven't already, please see this help article:
In the article above, note the base url example and the endpoint example. Here's an example of one of my API calls - mine is for a smartsheet routine.
Also, at least for a smartsheet API call, the Content-type and application/json would not be enclosed with quotes. I realize the syntax might be different for Slack API.
Kelly
Answers
-
Hey @abrae005
It could be your profile setup that is causing your issues. If you haven't already, please see this help article:
In the article above, note the base url example and the endpoint example. Here's an example of one of my API calls - mine is for a smartsheet routine.
Also, at least for a smartsheet API call, the Content-type and application/json would not be enclosed with quotes. I realize the syntax might be different for Slack API.
Kelly
-
Thanks @Kelly Moore . Splitting the URL so part of it (everything that was redacted in my screenshot above) is in the "Endpoint" field, and removing the quotes from Content-Type and Application/json seems to have done the trick.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 378 Global Discussions
- 208 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 33 Webinars
- 7.3K Forum Archives