# Configuración del portal

GET `https://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

**`data` Configuració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`.**

`id` string

`isEnabled` boolean Portal publicado

`slug` string

`isDefault` boolean

`kind` string Portal de Domu o sitio externo propio

`themePublished` any Tema publicado (colores, tipografía, secciones)

`logoUrl` string

`faviconUrl` string

`coverImageUrl` string

`contactEmail` string

`contactPhone` string

`contactWhatsapp` string

`contactAddress` string

`facebookUrl` string

`instagramUrl` string

`customDomain` string

`customDomainVerified` boolean

`publishedAt` string

`createdAt` string

`updatedAt` string

## Errores posibles

con la forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/portal" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.portal.get();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/portal",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Respuesta · 200 · ejemplo**

```json
{
  "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": "hola@inmobiliariaandes.co",
    "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"
  }
}
```
