How to configure Webhook in Custom App?

Hi all,

I am going to build a Instant Trigger module in Custom App. My goal is to trigger db changes in Webhook. I know there are 2 types in Webhook (Dedicated, Shared). In my case, I think I should use shared webhook.

Connection
{
	// Request
	"url": "http://example.com/auth/about",          // Absolute URL to the API endpoint which validates credentials
	"headers": {                                          // Additional HTTP headers
		"Authorization": "{{parameters.apiKey}}"   // Authorizes user by API key, provided by user during the connection creation.
	},

	// Response handling
	"response": {
		"uid": "{{body.data.id}}",
		"valid": "{{body.ok}}",
		"metadata": {                                     // Adds authorized user details to the connection label.
			"type": "email",                              // Type of the parameter. Can be "text" or "email".
			"value": "{{body.data.email}}"                     // The value in "email" will be displayed in connection's label.
		},
		"error": {                                        // Error handling
			"message": "[{{statusCode}}] {{body.error}}"  // On error, returns error message as "[statusCode] error text".
		}
	},

	"log": {
		"sanitize": [                                     // Excludes sensitive parameters from logs.
			"request.headers.authorization"               // Omit HTTP header "Authorization".
		]
	}
}
Webhook Communication
{
	"uid": "{{item.uid}}",  // "UID" parameter is used to match the incoming event with their owners.
	                        // The "UID" parameter must be defined in the connection specification.
	"output": "{{item}}"    // Returns JSON response item as an output bundle.
}

But when connect a webhook in scenario, I get this error: "Service account ID must be specified for shared webhooks.

I am not sure what the issue is now.

Any help would be appreciated.

I just fixed it. The error is that I was sending a wrong user id from backend.
Btw, I am trying to send a POST request to webhook url, but I didn’t get any data in the scenario and get 404 error in Postman.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.