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

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

Power Automate listing-video flow facts
Built forMicrosoft 365 brokerages and teams with listings in SharePoint
Connector or integrationNone — the HTTP action calling the REST API
LicensePower Automate Premium for the owner (automated trigger), or a Process license on the flow
Run lengthUp to 30 days per run → one run per listing
Wait loopDo until: default 60 iterations / 1 hour — set your own
Key safetySecure Inputs + Secure Outputs on HTTP actions
Cost1 credit per clip + 1 per reel; failures refunded
No-code alternativeAutomation 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.

SharePoint list columns, who writes each one and an example value
ColumnWho writes itExample
Title (Listing ID)CoordinatorL-0142
Photo folder pathCoordinator/Listings/L-0142/Photos
StatusCoordinator sets Ready; the flow moves it onReady → Submitting → Rendering → Merging → Done, or Needs attention
Clip job IDsFlowJSON array of jobId values, in clip order
MLS reel URLFlowoutput_video_url of the landscape cut
Social reel URLFlowoutput_video_url of the portrait cut
NoteFlow; coordinator reads itSkipped files, HTTP status + message, error_message
Power Automate flow outline: step, action and endpoint or setting
StepActionEndpoint / setting
1Trigger: When an item is created or modifiedSharePoint list of listings
2Condition: Status equals ReadyNo → Terminate (the flow's own edits stop here)
3Update itemStatus = Submitting
4HTTP GET credits/api/v1/credits; need photos + 2
5List folder, then sort by nameKeep only .jpg, .jpeg, .png
6HTTP GET presigned URLs/api/v1/presigned-urls?count=n (1–20)
7Apply to each photoConcurrency 1 (the default)
7aGet file content → HTTP PUTpresignedUrl; Content-Type image/jpeg or image/png
7bHTTP POST clip → Append to array variable/api/v1/videos; keep jobId
8Do until every job is completed or failedDelay 1 min; HTTP GET /api/v1/videos/:jobId
9HTTP POST reels ×2/api/v1/reels; landscape and portrait
10Do until both reels finishHTTP GET /api/v1/reels/:jobId
11Create file ×2Save each MP4 in the listing folder
12Update itemReel URLs, Status = Done
FailRun after: has failedUpdate 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.

Simplified HTTP action: upload one photo
{
  "method": "PUT",
  "uri": "@{body('Get_presigned_URLs')?['uploads'][variables('i')]?['presignedUrl']}",
  "headers": { "Content-Type": "image/jpeg" },
  "body": "@body('Get_file_content')"
}
Simplified HTTP action: start one clip
{
  "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:

Illustrative action counts for polling 12 clip jobs
Polling patternActions per passRough total
Check all 12 jobs every minute1 Delay + 12 GETs + 12 conditions = 25~10 passes ≈ 250
Check only jobs still pendingShrinks as clips finishWell under 250
Check all 12 every 2 minutes25~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.

Runs for the illustrative colonial listing and the credits each used
RunWhat happenedCredits
Run 109_office.heic skipped before upload; Note: Export as JPEG0
Run 1Credit check asks for 15 (13 clips + 2 reels) and passes; one count=13 call0
Run 113 clip jobs accepted13
Run 1Do until (Count 30, Timeout PT45M) ends after ~9 passes; primary-bath photo fails as too large−1 refunded
Run 112 IDs merged twice: landscape unbranded, portrait with address + ending card2
Run 1, net12 clips, 2 reels (15 charged, 1 refunded)14
Run 2Status back to Ready, Note: Retry only missing; office and bath uploaded2
Run 2Both cuts rebuilt from 14 IDs2
Listing total14 clips, 4 reels18

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

No. imageUrl must point at PhotoAIVideo storage. Read the file with Get file content, PUT it to a presigned URL and send the publicUrl that comes back.

Not by itself. Microsoft 365 plans reach standard connectors only, and HTTP isn't on that list. The flow owner needs Power Automate Premium, or the flow needs a Process license.

Its defaults are 60 iterations and a PT1H timeout, whichever comes first. Set both yourself (Count can go to 5,000) and check job states after the loop ends.

Better not. An instant flow using premium connectors needs every person who runs it licensed, while an automated trigger on Status = Ready runs under the owner alone.

It will if Secure Inputs and Secure Outputs are off. Switch them on for every HTTP action that sends the Bearer header and the values are hidden from the run log.

Credits are taken when a job is accepted and returned automatically if it fails. The job's error_message says why and confirms the refund.

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 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.