ByDomuDevelopers

Página de agendamiento de un agente

GEThttps://api.bydomu.com/v1/booking/{slug}/page

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

Configuración de la página (duración de los espacios, anticipación, color, mensajes) con el agente y la organización. OJO: la respuesta viene doblemente envuelta, { data: { data: ... } }. Solo páginas de la organización de la clave (otro slug → 404).

Permission required

portal:read

Required header

X-API-Key · publishable or secret key

Access level

Level 1 · no request

Path parameters

1 · required
slugstring · required
Slug de la página de agendamiento del agente

Response 200

object · 1 fields
datadata
dataid · slug · isActive · title · welcomeMessage · brandColor · slotDurationMinutes · bufferMinutes · maxDaysAhead · minNoticeHours · timeZone · requireEmail · requirePhone · showProperties · autoConfirm · thankYouMessage · defaultType · agent · organization
idstring
slugstring
isActiveboolean
titlestring
welcomeMessagestring
brandColorstring
slotDurationMinutesinteger
bufferMinutesinteger
maxDaysAheadinteger
minNoticeHoursinteger
timeZonestring
requireEmailboolean
requirePhoneboolean
showPropertiesboolean
autoConfirmboolean
thankYouMessagestring
defaultTypestringSHOWING, MEETING, CALL, FOLLOW_UP, SIGNING, DEMO
agentid · firstName · lastName · avatarUrl · bio · phone · email
idstring
firstNamestring
lastNamestring
avatarUrlstring
biostring
phonestring
emailstring
organizationid · name · slug · logo · phone · email · website
idstring
namestring
slugstring
logostring
phonestring
emailstring
websitestring

Possible errors

shaped as { "error": { "code", "message" } }
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestGET/v1/booking/{slug}/page
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.booking.getPage("carlos-rodriguez");
200 OK · example
{
  "data": {
    "data": {
      "id": "clx1bkp001",
      "slug": "carlos-rodriguez",
      "isActive": true,
      "title": "Agenda una visita con Carlos",
      "welcomeMessage": "Elige el día y la hora que te queden mejor.",
      "brandColor": "#0F766E",
      "slotDurationMinutes": 60,
      "bufferMinutes": 15,
      "maxDaysAhead": 30,
      "minNoticeHours": 12,
      "timeZone": "America/Bogota",
      "requireEmail": false,
      "requirePhone": true,
      "showProperties": true,
      "autoConfirm": false,
      "thankYouMessage": "¡Listo! Te confirmamos por WhatsApp.",
      "defaultType": "SHOWING",
      "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": "[email protected]"
      },
      "organization": {
        "id": "clx1org001",
        "name": "Inmobiliaria Andes",
        "slug": "inmobiliaria-andes",
        "logo": "https://cdn.bydomu.com/logos/andes.png",
        "phone": "+576015551234",
        "email": "[email protected]",
        "website": "https://inmobiliariaandes.co"
      }
    }
  }
}