ByDomuDevelopers

Listar agentes

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

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Miembros de la organización con al menos una propiedad publicada en el portal, ordenados por cantidad de propiedades (de más a menos).

Permission required

portal:read

Required header

X-API-Key · publishable or secret key

Access level

Level 1 · no request

Response 200

PortalAgent[] · 8 fields
data[]id · firstName · lastName · avatarUrl · bio · phone · email · propertyCount
idstring
firstNamestring
lastNamestring
avatarUrlstring
biostring
phonestring
emailstring
propertyCountintegerPropiedades publicadas del agente

Possible errors

shaped as { "error": { "code", "message" } }
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestGET/v1/agents
Official SDK · @bydomu/sdk · not on npm yet
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.agents.list();
200 OK · example
{
  "data": [
    {
      "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": "[email protected]",
      "propertyCount": 12
    }
  ]
}