Request services from a pro: Gyms, Landscaping, and Website Development

Labored documentation

Full API reference for company lbr_* keys and partner lead keys - plus diagrams, models, and workflows. Upload singles and before/after photos, pull portfolio media, ingest leads.

Documentation / Workflows

Workflow - Media sync

Preferred (portable)

  1. Owner or partner dashboard uploads via POST /api/media_upload (single_image or before_after) with lbr_* + company_id
  2. Or manage photos in Labored portfolio UI
  3. Partner site calls GET /api/media with lbr_* + company_id
  4. Cache response briefly (60-300s) if needed
  5. Map kinds to partner gallery components
  6. 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