API quickstart
Send your first property shoot through the HDRflow API, from creating a listing to downloading the finished photos.
This walk-through takes one shoot from upload to finished photos. Examples use cURL and Python; any HTTP client works. You need an API key from your HDRflow contact.
export HDRFLOW_API_KEY=hdrf_live_your_key_here
export HDRFLOW_BASE_URL=https://api.hdrflow.com1. Create a listing
A listing is the container for one property shoot. Put your own order ID in external_ref so you can match results to your orders later.
curl -X POST "$HDRFLOW_BASE_URL/listings/" \
-H "Authorization: Bearer $HDRFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "142 Maple St, Austin TX", "address": "142 Maple St, Austin, TX", "external_ref": "ORDER-4821"}'{
"id": "0b0c9e5b-1ee7-4e36-9adb-2c0f8ed12345",
"title": "142 Maple St, Austin TX",
"address": "142 Maple St, Austin, TX",
"external_ref": "ORDER-4821",
"status": "draft",
"job_count": 0,
"created_at": "2026-07-22T14:00:00Z"
}You can find a listing again by your reference: GET /listings/?external_ref=ORDER-4821.
2. Create a job and get upload URLs
Send the file names you are about to upload. You get back one upload URL per file.
curl -X POST "$HDRFLOW_BASE_URL/listings/LISTING_ID/jobs" \
-H "Authorization: Bearer $HDRFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"files": [{"filename": "IMG_0001.ARW"}, {"filename": "IMG_0002.ARW"}, {"filename": "IMG_0003.ARW"}],
"interior_style": "classic",
"webhook_url": "https://yourapp.example.com/hooks/hdrflow"
}'| Field | Required | What it does |
|---|---|---|
files | Yes | One entry per file, each with its filename. At least one. |
interior_style | No | classic (balanced, the default) or pro (a bolder HDR look). |
webhook_url | No | We POST to this URL when the job finishes, so you don't need to poll. See Webhooks. |
{
"job_id": "f3ab0f7a-52f3-4b11-bd49-badb7cf1a9d3",
"short_id": 1042,
"upload_urls": [
{ "photo_id": "9c1d8e8b-1eb5-4f3f-a3f8-20f9cf4a44e9", "filename": "IMG_0001.ARW", "presigned_url": "https://...signed-upload-url..." }
]
}Keep the photo_id to filename mapping: later responses refer to photos by photo_id.
3. Upload each file
PUT each file's bytes to its own presigned_url. Do not send your API key with these uploads.
import requests
with open("IMG_0001.ARW", "rb") as f:
requests.put(presigned_url, data=f, headers={"Content-Type": "application/octet-stream"})- Each upload URL works for one file and expires after about 15 minutes, so create the job right before you upload.
- Use the URL exactly as you received it. Don't trim it, re-encode it or rebuild it.
- Uploading straight from your users' browsers works too. Your server creates the job and hands each browser its upload URLs, and the API key stays on your server.
4. Confirm the job
When every file is uploaded, confirm the job. Processing starts right after.
curl -X POST "$HDRFLOW_BASE_URL/listings/LISTING_ID/jobs/JOB_ID/confirm" \
-H "Authorization: Bearer $HDRFLOW_API_KEY"{ "job_id": "f3ab0f7a-52f3-4b11-bd49-badb7cf1a9d3", "status": "pending", "message": "Job confirmed. Processing will begin shortly." }5. Wait for the result
Either wait for the webhook, or check the job every 30 to 60 seconds.
curl "$HDRFLOW_BASE_URL/jobs/JOB_ID" -H "Authorization: Bearer $HDRFLOW_API_KEY"A job moves through pending, then processing, then completed, or it ends as failed. A failed job can be retried without uploading again.
A job succeeds or fails as a whole. Only the job's status tells you the result: its photos become done together when the job is completed, and no photo can fail on its own.
6. Download the finished photos
List the finished photos with their download links:
curl "$HDRFLOW_BASE_URL/jobs/JOB_ID/photos" -H "Authorization: Bearer $HDRFLOW_API_KEY"[
{ "id": "9c1d8e8b-1eb5-4f3f-a3f8-20f9cf4a44e9", "filename": "IMG_0001.ARW", "status": "done", "web_url": "https://...signed-download-url..." }
]Every photo in a completed job is done and has a web_url. The list can be shorter than the files you uploaded, because bracketed exposures are merged into one finished image.
Or get everything as one ZIP:
curl -L -o shoot.zip "$HDRFLOW_BASE_URL/jobs/JOB_ID/download/zip" -H "Authorization: Bearer $HDRFLOW_API_KEY"Add ?photo_ids=<id1>,<id2> to the ZIP request (or to GET /jobs/{job_id}/download) to limit it to certain photos. Download links are short-lived: save the files, not the links.