Identify users from webhook calls
When your Bridge scenario triggers a webhook in your system, you'll often need to identify which of your users initiated the scenario. Passing a user ID directly to this webhook is a way to achieve this.
To configure your Bridge template to include a user ID:

In your Bridge template, add an HTTP > Make a request module to call your webhook.
Under Query String, click Add parameter.
In the Name field, enter a name to represent your user ID. In this example, userID
.
Mark the Value as Show in wizard.
Click the Copy icon to copy the Field ID.
The Field ID will look like this: 08d6c70a-2e39-44b4-a321
Click Save.
When you initialize a flow from this template, use hard prefill in the request body to prefill the ID of your user in this field:
{
"prefill": {
"hard": {
"08d6c70a-2e39-44b4-a321": 12345
}
}
}
In this example:
08d6c70a-2e39-44b4-a321
is the Field ID12345
is the user ID from your system.
The userId
you prefilled will be passed to your webhook when the scenario is executed.
Last updated