TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/scooller/Leben-site/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/site-config endpoint returns the global site configuration stored in SiteSettings and is the primary data source for bootstrapping any frontend that connects to an iLeben backend. It is intentionally public so that unauthenticated page loads can immediately access branding assets, SEO metadata, and contact details. When a valid Bearer token is also supplied, the response expands to include sensitive fields such as payment gateway credentials and price-source configuration that should never be exposed to anonymous visitors.
Endpoint
Authentication
This endpoint is public — no token is required to receive the base response. However, passing a valid Bearer token unlocks additional fields intended for authorized frontend integrations.| Scenario | Fields returned |
|---|---|
| No token / anonymous | Public fields only |
Valid Authorization: Bearer <token> | Public fields + token-only fields |
Response fields
Public fields
These fields are returned for every request, regardless of authentication status. They are produced bySiteSetting::forFrontend(), which serializes the active SiteSettings record (ID = 1) and resolves Curator media URLs before returning the payload to the client.
The display name of the site, used in page titles and meta tags.
A short description of the site, used as the default meta description.
The canonical base URL of the site (e.g.
"https://miproyecto.cl").URL of the primary site logo. Resolved from the Curator media asset linked to
logo_id in SiteSettings.URL of the dark-mode variant of the site logo. Resolved from
logo_dark_id.URL of the sale-event logo variant. Resolved from
logo_sale_id. Present even when no sale event is active.URL of the site favicon. Resolved from
favicon_id.URL of the site app icon (used for PWA manifests and touch icons). Resolved from
icon_id.Primary hex brand color (e.g.
"#eb0029"). Defaults to "#eb0029" if not configured.Semantic color token for the brand (e.g.
"blue"). Used by the WebAwesome design system.Semantic color token for neutral UI elements (e.g.
"gray").Semantic color token for success states (e.g.
"green").Semantic color token for warning states (e.g.
"yellow").Semantic color token for error/danger states (e.g.
"red").WebAwesome theme name applied to the frontend (e.g.
"mellow"). Defaults to "mellow".WebAwesome palette applied to the frontend (e.g.
"natural"). Defaults to "natural".Icon family used throughout the UI (e.g.
"classic"). Defaults to "classic".Body font family name as configured in SiteSettings Typography tab.
Heading font family name as configured in SiteSettings Typography tab.
Full Google Fonts
@import stylesheet URL to inject into the frontend <head>.SEO and analytics metadata object. Contains the following keys:
| Key | Description |
|---|---|
meta_keywords | Comma-separated keyword string |
meta_author | Author meta tag value |
tag_manager_id | Google Tag Manager container ID |
default_meta_title | Default <title> for pages without an explicit title |
default_og_title | Default Open Graph title |
default_og_description | Default Open Graph description |
og_image | Open Graph image URL (resolved from Curator media or a static path) |
twitter_site | Twitter/X @handle for twitter:site meta tag |
robots_default | Default robots meta value (e.g. "index,follow") |
site_locale | Site locale string (e.g. "es-CL") |
utm_source_default | Default UTM source when not overridden |
utm_medium_default | Default UTM medium when not overridden |
utm_campaign_default | Default UTM campaign when not overridden |
utm_term_default | Default UTM term when not overridden |
utm_content_default | Default UTM content when not overridden |
utm_site_default | Default UTM site identifier when not overridden |
Public contact information. Contains
email, phone, and address as configured in the Contacto tab of SiteSettings.Contact page content and form configuration. Contains
title, subtitle, content (HTML string), and form_fields (array of field definitions used to render and validate the contact form).Social network URLs. Contains flat string keys:
facebook, instagram, twitter, linkedin, youtube. Null for any platform not configured.Whether a sale event is currently active. When
true, frontends should display sale pricing and the logo_sale asset.Whether the plant catalog is publicly visible. When
false, the catalog should be hidden from anonymous visitors (preview-authorized users can override this).Title to display when the catalog is not available (e.g.
"Próximamente").Message to display when the catalog is not available.
Default pagination size for plant catalog listings. Defaults to
12.Hero image/video configuration for key pages. Contains
home and contact sub-objects, each with image, image_desktop, image_mobile (resolved Curator URLs), and alt keys. The home hero also includes type ("video" or "image"), video_desktop_url, video_mobile_url, and video_poster_url.Navigation items for the site footer, as configured in SiteSettings.
Legal/copyright text rendered in the footer.
Whether the site is in maintenance mode. Always
false for preview-authorized requests even when maintenance is enabled.Message to display when
maintenance_mode is true.Custom CSS injected into the frontend
<head>.Custom script tags injected into the
<head>.Custom script tags injected before the closing
</body>.Token-only fields
These fields are omitted from anonymous responses and are only present when a valid Bearer token is included.Payment gateway configuration object. Contains one key per gateway (
transbank, mercadopago, manual), each with enabled (boolean) and config (object with gateway-specific credentials — sensitive, never expose to anonymous clients). Also contains the following top-level keys within this object:| Key | Description |
|---|---|
price_source | Price display source: "final" or "base". Controls which price field the frontend shows. |
price_percentage_source | Discount percentage source: "max_unit" or "web_discount". Controls which discount percentage is applied for catalog display. |
reservation_timeout_minutes | How many minutes a plant reservation remains valid before expiring. |
Examples
Public request (no token)
Authorized request (with Bearer token)
The data returned by this endpoint is powered by
SiteSetting::forFrontend(). This method serializes the active SiteSettings record (ID = 1) and resolves Curator media URLs for fields like logo, favicon, and hero images before returning them to the client.