Documentation
/ Diagrams
Media pipeline
flowchart TB
OWN[Owner uploads in Labored dashboard] --> PF[(labored_company_portfolio)]
PF --> MEDIA[GET /api/media]
MEDIA --> NORM[Normalize absolute URLs]
NORM --> MERGE[Partner gallery merge]
MERGE --> HOME[Homepage gallery]
MERGE --> PAGE[/gallery/]
MERGE --> JSON[Public gallery JSON]
subgraph kinds
S[single_image ? image_url]
BA[before_after ? before_url + after_url]
G[image_gallery ? gallery_urls]
end
PF --> kinds
Recommended call
GET /api/media?company_id={id}&include=portfolio&grouped=1
X-API-Key: lbr_�
Use absolute URLs from the response as-is. Do not rewrite hostnames.