Use Webhooks with Microsoft Power Automate
This walkthrough shows how to receive APS webhook callbacks in Microsoft Power Automate using the When an HTTP request is received trigger. The steps use a Data Management example: register a dm.version.added webhook and run a sample action (such as sending email) when a new file version is uploaded to a monitored folder.
The same Power Automate pattern works for other Webhooks events. You still use your flow’s HTTP URL as callbackUrl, but you register against the system and event for the service you care about (for example, Model Derivative or ACC Issues). See Supported Events and the other walkthroughs in the How-to Guide for registration details per event.
For more details about the Webhooks API, see the Webhooks API Overview.
Before You Begin
- A Power Automate account that uses a Microsoft work or school email address. Personal accounts, such as outlook.com or gmail.com, are not supported. See Sign up and sign in.
- A Power Automate Premium license or trial. When an HTTP request is received is a premium trigger: without the license, the flow saves but cannot run.
- If you use Power Automate through your organization, its policies must allow the HTTP trigger with Who can trigger the flow? set to Anyone. If they don’t, contact your administrator.
- Register an app and select both the Data Management API and the Webhooks API.
- Acquire an access token with the
data:readanddata:writescopes, which creating a webhook requires. For choosing and acquiring an access token, see Authentication for Webhooks. - Access to the BIM 360 Docs or Autodesk Docs folder you want to monitor.
- If the folder is not in the default
USregion, note which region holds it. Register the webhook against that region, and use the same region for every later Webhooks request that touches it. See Regionalization and Data Residency. - A tool to register the webhook (Visual Studio Code APS extension, Postman, or Insomnia).
Related walkthroughs
- Creating a Webhook (Data Management): registration API details
- How to Verify Payload Signature: verify callbacks before production use
Step 1: Create a Power Automate Flow
Create a flow whose trigger provides a callback URL for webhook registration.
- Sign in to Power Automate and select Create > Automated cloud flow. Name the flow, then select Skip instead of choosing a trigger from the list.
- Select Add a trigger, search for HTTP request, and select When an HTTP request is received from the Request connector. Do not use the triggers under the HTTP connector; those send outgoing requests.
- Set Who can trigger the flow? to Anyone. The default, Any user in my tenant, requires a Microsoft sign-in that APS callbacks cannot provide, so deliveries are rejected.
- Add a placeholder action so that you can save the flow. For example, add Send an email (V2) from the Office 365 Outlook connector and sign in when prompted. Before production use, replace this action or add signature verification in front of it. See the warning after this step.
- Save the flow.
- Open the trigger and copy the HTTP URL. You use this URL as
callbackUrlwhen registering the APS webhook in Step 3.
Note
Power Automate generates the callback URL only after you save the flow. If the URL field is empty, save again.
After you save, Power Automate may display the trigger as manual on the canvas and in the dynamic content list.
Warning
Because Who can trigger the flow? is set to Anyone, anyone who has this URL can trigger your flow. Treat the HTTP URL as a secret: do not commit it, share it in public channels, or paste it into shared documents.
To accept only genuine APS callbacks, set a secret token on the webhook and verify the x-adsk-signature header on each delivery. How to Verify Payload Signature shows the check in Node.js. Power Automate has no built-in HMAC action, so implement the check in an Azure Function or a custom connector. Add it before your flow acts on the payload, including the sample email action.
Step 2: Get the Folder Scope from Autodesk Docs
The dm.version.added event requires a folder URN as the webhook scope, not a project ID or item ID. Scope is recursive: the webhook also covers the folder’s subfolders. To monitor a whole project, scope to the project’s root folder URN.
For how to retrieve the folder URN, see Step 2: Find the Folder URN in Creating a Webhook (Data Management).
Step 3: Register the Webhook
Register a webhook that sends dm.version.added events to your Power Automate callback URL for the folder from Step 2.
Use the Visual Studio Code APS extension, Postman, Insomnia, or another HTTP client. For full details on auth headers, request body, and error handling (including 400 when the scope is wrong), see Creating a Webhook (Data Management).
If your data is not in the default US region, specify the relevant region when making the request. See Regionalization and Data Residency.
Request
curl -X 'POST' \
-v 'https://developer.api.autodesk.com/webhooks/v1/systems/data/events/dm.version.added/hooks' \
-H 'Content-Type: application/json' \
-H 'authorization: Bearer <ACCESS_TOKEN>' \
-d '{
"callbackUrl": "<POWER_AUTOMATE_HTTP_URL>",
"scope": {
"folder": "<FOLDER_URN>"
}
}'
Replace <POWER_AUTOMATE_HTTP_URL> with the URL from Step 1 and <FOLDER_URN> with the folder URN from Step 2.
A successful request returns 201. For the full response and for error handling, see Creating a Webhook (Data Management).
Step 4: Test the Flow
Verify end-to-end delivery from APS to Power Automate.
- Upload a new file (or a new version of a file) to the monitored folder in BIM 360 Docs or Autodesk Docs.
- Open Power Automate and check the Run history for your flow.
- Confirm the run succeeded and your action completed (for example, email received).
If the flow does not trigger:
- Confirm the webhook is
activeby retrieving your webhooks. See Retrieve a List of Webhooks. - Confirm the upload was made in the scoped folder or one of its subfolders.
- Confirm the Power Automate callback URL is correct and the flow is turned on.
- Confirm Who can trigger the flow? is set to Anyone.
- See Monitoring and Troubleshooting for diagnosing delivery problems.
Step 5: Use Webhook Payload Fields in Your Flow
Reference JSON payload fields from the webhook callback in downstream Power Automate actions.
- Open a successful run in Power Automate and expand the trigger to inspect the JSON body. The payload includes fields such as:
{ "version": "1.0", "resourceUrn": "urn:adsk.wipprod:fs.file:vf.0zvdp3CoTzWDcZC_wL0kJA?version=1", "hook": { "system": "data", "event": "dm.version.added", "hookId": "1fcd3e30-9f3f-11e7-951f-0fd5337ed5ce", "scope": { "folder": "urn:adsk.wipprod:fs.folder:co.wT5lCWlXSKeo3razOfHJAw" } }, "payload": { "ext": "txt", "name": "notes.txt", "version": "1", "lineageUrn": "urn:adsk.wipprod:dm.lineage:0zvdp3CoTzWDcZC_wL0kJA" } }Show More - Copy the JSON body from your run. Edit the flow, open the trigger, and select Use sample payload to generate schema. Paste the body and select Done. Without a schema, Power Automate cannot list the payload fields as dynamic content.
Note
Generate the schema from a body your flow actually received, not from the abbreviated example above. Real payloads can include more fields, or fields with different types, and a schema built from the example might fail to parse them.
- In a later action, select a field such as Body, then select the lightning bolt icon or type
/to insert dynamic content. Search for a payload field, such asname, and select it.
- Save the flow, upload another file, and confirm the dynamic fields resolve correctly.
For more complex mappings, you can use the Parse JSON action instead. For the complete body and the headers that accompany a delivery, see dm.version.added.
Next Steps
- Replace the sample email action with your production workflow.
- Verify callback authenticity before production use. See How to Verify Payload Signature.
- Subscribe to other events with the same Power Automate flow URL. See Supported Events and the event-specific walkthroughs in the How-to Guide.
- See Configuring Your Server if you later move from Power Automate to a custom callback server.