Agendar cita
POST
https://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 · requiredslugstring · requiredSlug de la página de agendamiento del agente
Headers
1 · all optionalIdempotency-Keystring · optionalClave ú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 charsBody (JSON)
9 · 4 requiredfirstNamestring · required2–100 chars
phonestring · required7–20 chars
datestring · requiredstartTimestring · requiredlastNamestring · optional≤ 100 chars
emailstring · optionalemail
See the other 3 parameters
propertyIdstring · optionalmessagestring · optional≤ 500 chars
typestring · optionalSHOWING · MEETING · CALL · FOLLOW_UP · SIGNING · DEMO · OTHER · default "SHOWING"
Response 201
object · 1 fieldsdatadata
dataappointmentId · status · ownerNotified
appointmentIdstringstatusstringCONFIRMED, SCHEDULEDownerNotifiedAgente al que se avisó
firstNamestringlastNamestringPossible 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