# Perfil de agente

GET `https://api.bydomu.com/v1/agents/{id}`

Perfil de un miembro de la organización con sus propiedades publicadas en el portal.

Permiso que pide

`portal:read`

Encabezado obligatorio

`X-API-Key` · clave publicable o secreta

Nivel de acceso

Nivel 1 · sin solicitud

## Parámetros de ruta

1 · obligatorios

`id` string · **obligatorio**

ID del usuario (agente)

## Respuesta 200

`PortalAgentProfile` · 2 campos

**`data` agent · properties**

**`agent` id · firstName · lastName · avatarUrl · bio · phone · email**

`id` string

`firstName` string

`lastName` string

`avatarUrl` string

`bio` string

`phone` string

`email` string

**`properties[]` id · code · title · description · type · transactionType · rentalServiceType · status · price · rentPrice · currency · adminFee · securityDeposit · neighborhood · city · state · country · bedrooms · bathrooms · halfBathrooms · parkingSpots · area · builtArea · floor · stratum · yearBuilt · elevator · petFriendly · furnished · amenities · virtualTourUrl · videoUrl · tour3dUrl · isFeatured · viewCount · agentId · createdAt · updatedAt · latitude · longitude · address · zipCode · locationPrecision · images · tourScenes · agent · tourManifest**

`id` string

`code` string Código legible de la propiedad

`title` string

`description` string

`type` string APARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE

`transactionType` string SALE, RENT, SALE_OR_RENT

`rentalServiceType` string BROKERAGE, MANAGEMENT

`status` string DRAFT, ACTIVE, RESERVED, SOLD, RENTED, INACTIVE

`price` string Precio de venta, o canon si es solo arriendo. Número decimal serializado como texto.

`rentPrice` string Canon mensual, solo en SALE_OR_RENT. Número decimal serializado como texto.

`currency` string

`adminFee` string Administración mensual. Número decimal serializado como texto.

`securityDeposit` string Número decimal serializado como texto.

`neighborhood` string

`city` string

`state` string

`country` string

`bedrooms` integer

`bathrooms` integer

`halfBathrooms` integer

`parkingSpots` integer

`area` number Área en m²

`builtArea` number Área construida en m²

`floor` integer

`stratum` integer Estrato socioeconómico (1-6)

`yearBuilt` integer

`elevator` boolean

`petFriendly` boolean

`furnished` string UNFURNISHED, SEMI_FURNISHED, FURNISHED

`amenities` any IDs de amenidades

`virtualTourUrl` string

`videoUrl` string

`tour3dUrl` string

`isFeatured` boolean

`viewCount` integer

`agentId` string

`createdAt` string

`updatedAt` string

`latitude` number Redondeada a 2 decimales si la ubicación es aproximada

`longitude` number Redondeada a 2 decimales si la ubicación es aproximada

`address` string `null` si la ubicación es aproximada

`zipCode` string `null` si la ubicación es aproximada

`locationPrecision` string EXACT, APPROXIMATE

**`images[]` id · url · thumbUrl · order · isPrimary · caption · isVirtualStaging · propertyId**

`id` string

`url` string

`thumbUrl` string

`order` integer

`isPrimary` boolean

`caption` string

`isVirtualStaging` boolean

`propertyId` string

**`tourScenes[]` id · imageUrl · thumbUrl · label · order**

`id` string

`imageUrl` string

`thumbUrl` string

`label` string

`order` integer

**`agent` id · firstName · lastName · avatarUrl · phone · email**

`id` string

`firstName` string

`lastName` string

`avatarUrl` string

`phone` string

`email` string

**`tourManifest` Manifiesto del recorrido virtual (escenas, plano, modelo 3D y calidad).**

`version` number 1

`modelUrl` string

`scenes` object[]

`quality` object

## Errores posibles

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

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

cURL:

```bash
curl "https://api.bydomu.com/v1/agents/clx1usr001" \
  -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.agents.get("clx1usr001");
```

Python:

```python
import os, requests

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

**Respuesta · 200 · ejemplo**

```json
{
  "data": {
    "agent": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez",
      "avatarUrl": "https://cdn.bydomu.com/avatars/carlos.jpg",
      "bio": "Asesor con 10 años en el mercado de Bogotá.",
      "phone": "+573001234567",
      "email": "carlos@inmobiliariaandes.co"
    },
    "properties": [
      {
        "id": "clx1prop001",
        "code": "P-0042",
        "title": "Apartamento en Chapinero con vista",
        "description": "Apartamento de 85 m² con balcón y vista a los cerros.",
        "type": "APARTMENT",
        "transactionType": "SALE",
        "rentalServiceType": "BROKERAGE",
        "status": "DRAFT",
        "price": "450000000.00",
        "rentPrice": "3500000.00",
        "currency": "COP",
        "adminFee": "380000.00",
        "securityDeposit": "3500000.00",
        "neighborhood": "Chapinero",
        "city": "Bogotá",
        "state": "Cundinamarca",
        "country": "CO",
        "bedrooms": 3,
        "bathrooms": 2,
        "halfBathrooms": 1,
        "parkingSpots": 1,
        "area": 85,
        "builtArea": 80,
        "floor": 8,
        "stratum": 4,
        "yearBuilt": 2015,
        "elevator": true,
        "petFriendly": true,
        "furnished": "UNFURNISHED",
        "amenities": [
          "pool"
        ],
        "virtualTourUrl": "https://my.matterport.com/show/?m=abc123",
        "videoUrl": "https://youtu.be/abc123",
        "tour3dUrl": "https://cdn.bydomu.com/tours/clx1prop001/model.splat",
        "isFeatured": false,
        "viewCount": 128,
        "agentId": "clx1usr001",
        "createdAt": "2026-08-01T14:30:00.000Z",
        "updatedAt": "2026-09-20T10:00:00.000Z",
        "latitude": 4.6486,
        "longitude": -74.0628,
        "address": "Cra 7 #45-12",
        "zipCode": "110231",
        "locationPrecision": "EXACT",
        "images": [
          {
  …
```
