Skip to content

Commit c942b0c

Browse files
Merge pull request #299446 from xuehongg/mybranch7
Adding how to use secondary key
2 parents d7eef62 + 0e3519c commit c942b0c

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

articles/connectors/connectors-native-webhook.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 02/09/2024
8+
ms.date: 05/07/2025
99
---
1010

1111
# Subscribe and wait for events to run workflows using HTTP webhooks in Azure Logic Apps
@@ -227,6 +227,39 @@ Here is more information about the outputs from an HTTP Webhook trigger or actio
227227
| 404 | Not Found |
228228
| 500 | Internal server error. Unknown error occurred. |
229229

230+
## Generate callback URL with secondary access key
231+
232+
A logic app workflow has two access keys: primary and secondary. By default, Azure Logic Apps uses the primary key to generate the callback URL for the HTTP webhook trigger.
233+
234+
To use the secondary key instead for callback URL generation, follow these steps:
235+
236+
1. From the workflow designer, switch to code view.
237+
238+
1. In the **`HttpWebhook`** trigger definition. find the **`accessKeyType`** parameter.
239+
240+
1. Specify the word **`Secondary`** as the parameter value.
241+
242+
1. Remember to save your changes.
243+
244+
The following example shows the webhook trigger definition with the **`accessKeyType`** parameter set to **`Secondary`**:
245+
246+
247+
```json
248+
{
249+
"type": "HttpWebhook",
250+
"inputs": {
251+
"subscribe": {
252+
"method": "POST",
253+
"uri": "<subscription-URL>",
254+
"body": "@listCallbackUrl()"
255+
},
256+
"accessKeyType": "Secondary"
257+
},
258+
"runAfter": {}
259+
}
260+
261+
```
262+
230263
## Next steps
231264

232265
* [Secure access and data - Access for inbound calls to request-based triggers](../logic-apps/logic-apps-securing-a-logic-app.md#secure-inbound-requests)

0 commit comments

Comments
 (0)