ByDomuDevelopers

Configuración del portal

GEThttps://api.bydomu.com/v1/portal

Devuelve la configuración del portal principal de la organización: plantilla, tema, secciones visibles y configuración del buscador. Si la organización aún no tiene portal responde valores por defecto con isEnabled: false.

Permiso que pide

portal:read

Encabezado obligatorio

X-API-Key · clave publicable o secreta

Nivel de acceso

Nivel 1 · sin solicitud

Respuesta 200

Portal · 20 campos
dataConfiguración del portal principal. Si la organización no tiene portal, llega un objeto por defecto con `isEnabled: false`, `template`, `themeConfig`, `showFeaturedSection`, `showAboutSection`, `showMapSection`, `showFinderSection` y `finderConfig`.
idstring
isEnabledbooleanPortal publicado
slugstring
isDefaultboolean
kindstringPortal de Domu o sitio externo propio
themePublishedanyTema publicado (colores, tipografía, secciones)
logoUrlstring
faviconUrlstring
coverImageUrlstring
contactEmailstring
contactPhonestring
contactWhatsappstring
contactAddressstring
facebookUrlstring
instagramUrlstring
customDomainstring
customDomainVerifiedboolean
publishedAtstring
createdAtstring
updatedAtstring

Errores posibles

con la forma { "error": { "code", "message" } }
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
PeticiónGET/v1/portal
SDK oficial · @bydomu/sdk · aún no está en npm
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.portal.get();
200 OK · ejemplo
{
  "data": {
    "id": "clx1por001",
    "isEnabled": true,
    "slug": "inmobiliaria-andes",
    "isDefault": true,
    "kind": "MANAGED",
    "themePublished": {
      "primaryColor": "#0F766E"
    },
    "logoUrl": "https://cdn.bydomu.com/logos/andes.png",
    "faviconUrl": "https://cdn.bydomu.com/logos/andes-favicon.png",
    "coverImageUrl": "https://cdn.bydomu.com/covers/andes.jpg",
    "contactEmail": "[email protected]",
    "contactPhone": "+576015551234",
    "contactWhatsapp": "+573001234567",
    "contactAddress": "Cra 7 #45-12, Bogotá",
    "facebookUrl": "https://facebook.com/inmobiliariaandes",
    "instagramUrl": "https://instagram.com/inmobiliariaandes",
    "customDomain": "www.inmobiliariaandes.co",
    "customDomainVerified": true,
    "publishedAt": "2026-06-01T12:00:00.000Z",
    "createdAt": "2026-01-10T15:00:00.000Z",
    "updatedAt": "2026-09-01T09:30:00.000Z"
  }
}