Skip to main content
Overview The landing page is a single record per company (or a single global record depending on your deployment).
It includes sections like:
  • Header + header images
  • Featured categories
  • Trainings and exams showcased on the landing page
  • Partner companies
  • Banner + banner image
  • Footer data
  • Quick links and social links

Common Headers Most endpoints require authentication. For endpoints that upload images, use:

Get Landing Page

GET /api/landing-page Retrieves the landing page with all related content. Included Relationships The response includes:
  • links
  • featuredCategories + feat_category_image
  • partnerCompanies + companyLogo
  • trainings (with instructor + images)
  • exams (with instructor + images)
  • headerImage, backgroundImage, bannerImage
Featured categories and partner companies are ordered by pivot_position. Response
✅ 200 OK

Update Landing Page (Create or Update)

POST /api/landing-page Creates or updates the landing page for the authenticated user’s company. Authentication & Company Rules
  • Returns 401 if unauthenticated
  • Returns 403 if user does not have company_id

Body (Validation Rules)

Section Toggles (Booleans) Company Content Header Fields Banner Fields Footer Fields Language Image Uploads (multipart/form-data) Response
✅ 200 OK

Sync Trainings (Attach / Reorder)

POST /api/landing-page/trainings/sync Selects and orders trainings displayed on the landing page. Body (Validation Rules)