Documentation
/ Workflows
Workflow - Media sync
Preferred (portable)
- Owner or partner dashboard uploads via
POST /api/media_upload(single_imageorbefore_after) withlbr_*+company_id - Or manage photos in Labored portfolio UI
- Partner site calls
GET /api/mediawithlbr_*+company_id - Cache response briefly (60-300s) if needed
- Map kinds to partner gallery components
- Render absolute URLs directly (
<img src="https://labored.net/...">)
Upload kinds
| kind | Files | Response URLs |
|---|---|---|
single_image |
image |
image_url |
before_after |
image_before + image_after |
before_url + after_url |
See /documentation/api/#media-upload.
Same-host fallback (EE platform)
When the partner app shares MySQL with Labored, you may read labored_company_portfolio directly and absolutize paths with LABORED_PUBLIC_ORIGIN. Prefer the HTTP API for any external deploy.
Cache / freshness
- Read-time merge is enough for most sites
- Add a cron only if you need offline copies in local
gallery_images - Never commit downloaded binaries into git