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 / Models

Model � Partner site integration

A portable partner site needs four modules. MP Backyard Solutions is the reference implementation under app/mpbackyardsolutions/.

Modules

  1. Config � load env constants for Labored keys/slug/company id
  2. Lead client � POST JSON to submit_request with partner key
  3. Media client � GET media with lbr_* + company_id
  4. Gallery merge � union local images + Labored portfolio for public UI

Suggested file map

config/env.php                 # LABORED_* constants
includes/labored_client.php    # media + partner request helpers
includes/gallery_merge.php     # merge shapes for templates
api/public_gallery.php         # JSON for partners / embeds
dashboard/labored.php          # operator hub

Display shape (gallery item)

{
  "display_type": "single|before_after|three_column",
  "label": "Patio rebuild",
  "description": "Hingham, MA",
  "image_path": "https://labored.net/uploads/portfolio/3/�",
  "before_image_path": "https://�",
  "after_image_path": "https://�",
  "source": "local|labored",
  "labored_id": 9
}

Remote absolute URLs reuse the same fields as local relative paths so templates stay unchanged.