Automate Listing Videos With Power Automate and SharePoint
How do you run the PhotoAIVideo API from Power Automate and SharePoint?
Build a cloud flow that fires when a SharePoint list item is set to Ready. It re-uploads that listing's folder photos through PhotoAIVideo presigned URLs, because sharing links are rejected, then starts one 1-credit clip per photo. The same run waits in a Do until loop and merges an unbranded MLS reel plus a social reel.
Last reviewed · By Zach Calhoon, Founder
This guide is for Microsoft 365 brokerages whose listings already sit in a SharePoint list, with photos in a document library. The flow calls only public endpoints, all documented on the Real Estate Video API hub.
The flow at a glance
| Built for | Microsoft 365 brokerages and teams with listings in SharePoint |
|---|---|
| Connector or integration | None — the HTTP action calling the REST API |
| License | Power Automate Premium for the owner (automated trigger), or a Process license on the flow |
| Run length | Up to 30 days per run → one run per listing |
| Wait loop | Do until: default 60 iterations / 1 hour — set your own |
| Key safety | Secure Inputs + Secure Outputs on HTTP actions |
| Cost | 1 credit per clip + 1 per reel; failures refunded |
| No-code alternative | Automation Mode in the app |
Is there a PhotoAIVideo connector for Power Automate?
No. PhotoAIVideo has no connector, Microsoft integration, certification or partnership. Instead, the flow's built-in HTTP action sends ordinary REST requests with a Bearer key. If you only need a video now and then, the app's Automation Mode does it in one click without any flow.
Licensing shapes the design. Free and Microsoft 365 plans stop at standard connectors, HTTP isn't on the standard list, and a custom connector needs a premium or trial license. Plan on Power Automate Premium, or a Process license on the flow. Per the licensing FAQ, automated flows run in the owner's context, so only the owner needs Premium; an instant button flow with premium connectors needs every runner licensed.
So nobody presses a button. The coordinator sets Status to Ready, and the automated trigger When an item is created or modified fires. The first step ends the run unless Status is Ready, then sets it to Submitting so the flow's own edits can't retrigger it. Skip the folder-based new-file trigger; Microsoft marks it deprecated.
What goes in the SharePoint list and the flow?
Each listing is one list item, and its photos sit in one folder of a document library. The item is where a person sees progress; the flow writes every state change there.
| Column | Who writes it | Example |
|---|---|---|
| Title (Listing ID) | Coordinator | L-0142 |
| Photo folder path | Coordinator | /Listings/L-0142/Photos |
| Status | Coordinator sets Ready; the flow moves it on | Ready → Submitting → Rendering → Merging → Done, or Needs attention |
| Clip job IDs | Flow | JSON array of jobId values, in clip order |
| MLS reel URL | Flow | output_video_url of the landscape cut |
| Social reel URL | Flow | output_video_url of the portrait cut |
| Note | Flow; coordinator reads it | Skipped files, HTTP status + message, error_message |
| Step | Action | Endpoint / setting |
|---|---|---|
| 1 | Trigger: When an item is created or modified | SharePoint list of listings |
| 2 | Condition: Status equals Ready | No → Terminate (the flow's own edits stop here) |
| 3 | Update item | Status = Submitting |
| 4 | HTTP GET credits | /api/v1/credits; need photos + 2 |
| 5 | List folder, then sort by name | Keep only .jpg, .jpeg, .png |
| 6 | HTTP GET presigned URLs | /api/v1/presigned-urls?count=n (1–20) |
| 7 | Apply to each photo | Concurrency 1 (the default) |
| 7a | Get file content → HTTP PUT | presignedUrl; Content-Type image/jpeg or image/png |
| 7b | HTTP POST clip → Append to array variable | /api/v1/videos; keep jobId |
| 8 | Do until every job is completed or failed | Delay 1 min; HTTP GET /api/v1/videos/:jobId |
| 9 | HTTP POST reels ×2 | /api/v1/reels; landscape and portrait |
| 10 | Do until both reels finish | HTTP GET /api/v1/reels/:jobId |
| 11 | Create file ×2 | Save each MP4 in the listing folder |
| 12 | Update item | Reel URLs, Status = Done |
| Fail | Run after: has failed | Update item: code + message in Note, Status = Needs attention |
Why can one flow run handle the whole listing?
A cloud flow run may last up to 30 days, according to Microsoft's limits page. That turns the usual split of submit, poll and merge jobs into a single run per listing: start every clip, wait, merge, write back. A Do until loop with a one-minute Delay does the waiting.
The catch is the loop's built-in brakes. Until stops after 60 iterations or one hour (PT1H), whichever comes first, per the loop reference. Nothing guarantees a listing finishes inside those defaults, and when the loop hits a limit it simply ends, mid-render or not. Set Count (up to 5,000) and Timeout yourself, then confirm every job is completed or failed; if not, mark Needs attention and skip the merge.
How do SharePoint photos get to the API?
Every photo has to be copied first. The API only accepts images stored on PhotoAIVideo, so a SharePoint sharing link can't go in imageUrl. Call GET /api/v1/presigned-urls?count=n once (1–20, no charge), then for each photo run Get file content and PUT those bytes to the matching presignedUrl, keeping its publicUrl.
Skip anything but .jpg, .jpeg or .png before upload. iPhone HEIC files get the note "Export as JPEG" and no charge (the FSBO platforms page shows the camera setting). Photos over 6000 px a side fail and are refunded. Size isn't the limit: the SharePoint connector takes 100 MB files.
{
"method": "PUT",
"uri": "@{body('Get_presigned_URLs')?['uploads'][variables('i')]?['presignedUrl']}",
"headers": { "Content-Type": "image/jpeg" },
"body": "@body('Get_file_content')"
}{
"method": "POST",
"uri": "https://app.photoaivideo.com/api/v1/videos",
"headers": {
"Authorization": "Bearer <key>",
"Content-Type": "application/json"
},
"body": {
"prompt": "Slow push toward the front door, late afternoon light",
"imageUrl": "@{body('Get_presigned_URLs')?['uploads'][variables('i')]?['publicUrl']}",
"effects": ["push_in"],
"duration": 5,
"model": "hypernova"
}
}Tracking listings in an Excel table instead? List rows present in a table returns 256 rows unless you turn on pagination, works with .xlsx files up to 25 MB, and needs a key column to update a row.
How many actions will polling use?
Every action counts as a Power Platform request, Delay and conditions included, and so do failures and retries. Daily allowances in the transition period are about 10,000 on Low (Free, Microsoft 365), 200,000 on Medium (Premium) and 500,000 on High (Process); Microsoft calls them approximations, not guarantees.
Illustrative tally for one 12-clip listing, not a measurement:
| Polling pattern | Actions per pass | Rough total |
|---|---|---|
| Check all 12 jobs every minute | 1 Delay + 12 GETs + 12 conditions = 25 | ~10 passes ≈ 250 |
| Check only jobs still pending | Shrinks as clips finish | Well under 250 |
| Check all 12 every 2 minutes | 25 | ~5 passes ≈ 125 |
For real numbers, open the flow details page and look at Analytics → Actions.
What happens when the API says no?
The HTTP action's retry policy resends on 408, 429 and 5xx responses. Some refusals never clear on their own: 402 means credits ran out (the body gives required and remaining), and 400 means a bad effect code or duration (the message lists what's allowed). Add a branch set to run after the HTTP action has failed; it writes the status code and message to Note and sets Status to Needs attention.
Check GET /api/v1/credits against photos plus 2 before uploading. For failed clip jobs, copy error_message into Note; it confirms the refund. Default retries are slow: up to two, 5–10 minutes apart, on Low; up to 12, growing toward an hour, on Medium or High. That can stall a run, so cap the loop.
Where should the API key live?
Run history is kept for 30 days, and it shows each action's inputs and outputs unless you secure them. In the Settings of every HTTP action that sends the key, turn on Secure Inputs and Secure Outputs; a lock icon confirms it, and the Bearer header stays out of the log. Never put the key in the list, the flow name or a Compose step.
Ownership matters as well. A flow uses its owner's plan, and when that person leaves the organization it drops back to the Low profile. Own the flow from a service or operations account.
How do finished clips become an MLS cut and a social cut?
Clip order follows file names, so prefix them 01_, 02_ and lead with an establishing exterior. Sort the List folder output by name before Apply to each, and leave its concurrency at 1 while appending job IDs so the array keeps that order.
Then call POST /api/v1/reels twice with the same IDs. The landscape cut carries no logo, ending card or text overlay, because MLS videos must be unbranded. The portrait cut adds the address as textOverlay plus an ending card for social. Each reel costs 1 credit and reuses the clips. Write output_video_url and download_url back to the item. The API docs don't state how long hosted files stay up, so a Create file step saves each MP4 into the listing folder. A person still checks both cuts first; the managing broker review guide covers that step.
Worked example: one colonial, two runs
Illustrative example — not a real listing, flow or customer.
A 1990s two-story colonial has 14 files in its folder, 01_front through 14_patio. The flow uses Count 30, Timeout PT45M and a one-minute Delay.
| Run | What happened | Credits |
|---|---|---|
| Run 1 | 09_office.heic skipped before upload; Note: Export as JPEG | 0 |
| Run 1 | Credit check asks for 15 (13 clips + 2 reels) and passes; one count=13 call | 0 |
| Run 1 | 13 clip jobs accepted | 13 |
| Run 1 | Do until (Count 30, Timeout PT45M) ends after ~9 passes; primary-bath photo fails as too large | −1 refunded |
| Run 1 | 12 IDs merged twice: landscape unbranded, portrait with address + ending card | 2 |
| Run 1, net | 12 clips, 2 reels (15 charged, 1 refunded) | 14 |
| Run 2 | Status back to Ready, Note: Retry only missing; office and bath uploaded | 2 |
| Run 2 | Both cuts rebuilt from 14 IDs | 2 |
| Listing total | 14 clips, 4 reels | 18 |
Before the second run the coordinator exported the office photo as JPEG and resized the bath shot. Rendered results from real photos are on the examples page; plans and credits are on the pricing page.
What stays outside PhotoAIVideo
Your list, folder and flow pick the photos, their order, the camera moves and where links land. The API renders clips and reels and reports status. A person approves each video before it reaches the MLS.
Frequently Asked Questions
Test the flow on a single listing
Create a key, switch on Secure Inputs for the HTTP actions, and set one list item to Ready before you point the flow at the whole list.
Sources
- Microsoft Learn: Limits of automated, scheduled, and instant flows: 30-day runs and retention, Until and Apply to each limits, Power Platform requests, performance profiles, retry policy; accessed December 1, 2026.
- Microsoft Learn: Power Automate licensing FAQ: standard-only Microsoft 365 plans, owner context for automated flows, instant-flow licensing; accessed December 1, 2026.
- Microsoft Learn: Types of Power Automate licenses: Premium, Free and Process license connector access; accessed December 1, 2026.
- Microsoft Learn: List of standard connectors: the standard set, which has no HTTP entry; accessed December 1, 2026.
- Microsoft Learn: Manage sensitive input: Secure Inputs and Secure Outputs in action settings; accessed December 1, 2026.
- Microsoft Learn: Loops in Azure Logic Apps: Until action Count and Timeout defaults; accessed December 1, 2026.
- Microsoft Learn: Handle errors and exceptions: retry status codes and run-after conditions; accessed December 1, 2026.
- Microsoft Learn: SharePoint connector: file size limit, Get file content, List folder, Create file, Update item, triggers and deprecations; accessed December 1, 2026.
- Microsoft Learn: Excel Online (Business) connector: 256-row default, pagination, 25 MB file limit; accessed December 1, 2026.
- PhotoAIVideo API v1 docs: auth, credits, presigned uploads, clip and reel jobs, errors; accessed December 1, 2026.
Microsoft describes its request allowances as approximations during a licensing transition period, and they can change; check the current limits page before sizing a flow.
Microsoft, Microsoft 365, Power Automate and SharePoint are trademarks of the Microsoft group of companies; PhotoAIVideo isn't affiliated with or endorsed by Microsoft.