ByDomuDevelopers

Agendar cita

POSThttps://api.bydomu.com/v1/booking/{slug}

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

Agenda una cita con el agente en un espacio libre (date + startTime en la zona horaria de la página). Queda CONFIRMED si la página confirma sola, si no SCHEDULED. Dispara el webhook BOOKING_CREATED. OJO: la respuesta viene doblemente envuelta, { data: { data: ... } }.

Permission required

booking:write

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

Headers

1 · all optional
Idempotency-Keystring · optional
Clave única de la operación (8-128 caracteres de [a-zA-Z0-9._:-]). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas.8–128 chars

Body (JSON)

9 · 4 required
firstNamestring · required
2–100 chars
phonestring · required
7–20 chars
datestring · required
startTimestring · required
lastNamestring · optional
≤ 100 chars
emailstring · optional
email
See the other 3 parameters
propertyIdstring · optional
messagestring · optional
≤ 500 chars
typestring · optional
SHOWING · MEETING · CALL · FOLLOW_UP · SIGNING · DEMO · OTHER · default "SHOWING"

Response 201

object · 1 fields
datadata
dataappointmentId · status · ownerNotified
appointmentIdstring
statusstringCONFIRMED, SCHEDULED
ownerNotifiedAgente al que se avisó
firstNamestring
lastNamestring

Possible errors

shaped as { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 402PAYMENT_REQUIRED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 409DUPLICATE
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestPOST/v1/booking/{slug}
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.submit("carlos-rodriguez", {
  "firstName": "María",
  "lastName": "González",
  "phone": "+573001234567",
  "email": "[email protected]",
  "date": "2026-10-05",
  "startTime": "09:00",
  "type": "SHOWING",
  "propertyId": "clx1prop001"
});
201 Created · example
{
  "data": {
    "data": {
      "appointmentId": "clx1apt009",
      "status": "CONFIRMED",
      "ownerNotified": {
        "firstName": "Carlos",
        "lastName": "Rodríguez"
      }
    }
  }
}