Agenda
Tipos de cita
GET /v1/c/{slug}/appointment-types · Alcances: appointments:read
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
Ejemplo de solicitud
curl -X GET "https://api.donetalk.com/v1/c/demo/appointment-types" \
-H "Authorization: Bearer $DONETALK_KEY"
Respuesta 200
{
"types": [
{
"id": "01a1228c-c58f-796a-b3aa-54a953711c71",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"name": "Visita ao imóvel",
"durationMin": 60,
"agendaName": "Visitas aos imóveis",
"timezone": "America/Sao_Paulo",
"isActive": true
}
]
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Horarios libres
GET /v1/c/{slug}/appointment-types/{id}/slots · Alcances: appointments:read
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
id | El id del registro. |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Detalles |
|---|
from | string (date-time) | no | |
to | string (date-time) | no | |
limit | integer | no | hasta 500; mínimo 1; default 100 |
contactId | string (uuid) | no | |
memberId | string (uuid) | no | |
exclude | string (uuid) | no | |
Ejemplo de solicitud
curl -X GET "https://api.donetalk.com/v1/c/demo/appointment-types/:id/slots" \
-H "Authorization: Bearer $DONETALK_KEY"
Respuesta 200
{
"timezone": "America/Sao_Paulo",
"durationMin": 60,
"slots": [
{
"start": "2026-10-27T13:00:00.000Z",
"end": "2026-10-27T14:00:00.000Z",
"memberIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
]
}
]
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Citas
GET /v1/c/{slug}/appointments · Alcances: appointments:read
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Detalles |
|---|
from | string (date-time) | no | |
to | string (date-time) | no | |
agendaId | string (uuid) | no | |
memberId | string (uuid) | no | |
mine | integer | no | hasta 1; default 0 |
status | string | no | |
Ejemplo de solicitud
curl -X GET "https://api.donetalk.com/v1/c/demo/appointments" \
-H "Authorization: Bearer $DONETALK_KEY"
Respuesta 200
{
"appointments": [
{
"id": "01a2f00d-1234-7abc-8def-0123456789ab",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"agendaName": "Visitas aos imóveis",
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"typeName": "Visita ao imóvel",
"typeColor": "#1daa61",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"contactName": "Ana Souza",
"conversationId": "01a3c0de-7a11-7b22-8c33-9d44e55f6677",
"channelId": "01a0cccc-0000-7000-8000-000000000002",
"memberId": "01a0cac1-4a6f-7646-b5f8-c1d19090016a",
"memberName": "Tayomara Batista",
"holderIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
],
"status": "booked",
"startsAt": "2026-10-27T13:00:00.000Z",
"endsAt": "2026-10-27T14:00:00.000Z",
"timezone": "America/Sao_Paulo",
"location": "Rua Bahia, 120 – Higienópolis, São Paulo",
"locationKind": "address",
"onlineUrl": null,
"answers": {
"imovel": "AP-2231"
},
"notes": null,
"source": "api",
"createdByKind": "api_key",
"createdById": null,
"confirmedAt": null,
"cancelledAt": null,
"cancelledByKind": null,
"cancelReason": null,
"rescheduleCount": 0,
"previousStartsAt": null,
"publicToken": "r3WqZ8",
"createdAt": "2026-10-23T13:02:11.000Z"
}
]
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Agendar
POST /v1/c/{slug}/appointments · Alcances: appointments:write
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
Cuerpo de la solicitud
| Campo | Tipo | Obligatorio | Detalles |
|---|
typeId | string (uuid) | sí | |
contactId | string (uuid) | sí | |
startsAt | string (date-time) | sí | |
conversationId | string (uuid) | no | null |
memberId | string (uuid) | no | null |
answers | object | no | |
notes | string | no | hasta 2000 caracteres; null |
force | boolean | no | |
confirm | boolean | no | |
Ejemplo de solicitud
curl -X POST "https://api.donetalk.com/v1/c/demo/appointments" \
-H "Authorization: Bearer $DONETALK_KEY" \
-H "Content-Type: application/json" \
-d '{
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"startsAt": "2026-10-27T13:00:00.000Z",
"answers": {
"imovel": "AP-2231"
}
}'
Respuesta 201
{
"appointment": {
"id": "01a2f00d-1234-7abc-8def-0123456789ab",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"agendaName": "Visitas aos imóveis",
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"typeName": "Visita ao imóvel",
"typeColor": "#1daa61",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"contactName": "Ana Souza",
"conversationId": "01a3c0de-7a11-7b22-8c33-9d44e55f6677",
"channelId": "01a0cccc-0000-7000-8000-000000000002",
"memberId": "01a0cac1-4a6f-7646-b5f8-c1d19090016a",
"memberName": "Tayomara Batista",
"holderIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
],
"status": "booked",
"startsAt": "2026-10-27T13:00:00.000Z",
"endsAt": "2026-10-27T14:00:00.000Z",
"timezone": "America/Sao_Paulo",
"location": "Rua Bahia, 120 – Higienópolis, São Paulo",
"locationKind": "address",
"onlineUrl": null,
"answers": {
"imovel": "AP-2231"
},
"notes": null,
"source": "api",
"createdByKind": "api_key",
"createdById": null,
"confirmedAt": null,
"cancelledAt": null,
"cancelledByKind": null,
"cancelReason": null,
"rescheduleCount": 0,
"previousStartsAt": null,
"publicToken": "r3WqZ8",
"createdAt": "2026-10-23T13:02:11.000Z"
}
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Ver una cita
GET /v1/c/{slug}/appointments/{id} · Alcances: appointments:read
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
id | El id del registro. |
Ejemplo de solicitud
curl -X GET "https://api.donetalk.com/v1/c/demo/appointments/:id" \
-H "Authorization: Bearer $DONETALK_KEY"
Respuesta 200
{
"appointment": {
"id": "01a2f00d-1234-7abc-8def-0123456789ab",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"agendaName": "Visitas aos imóveis",
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"typeName": "Visita ao imóvel",
"typeColor": "#1daa61",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"contactName": "Ana Souza",
"conversationId": "01a3c0de-7a11-7b22-8c33-9d44e55f6677",
"channelId": "01a0cccc-0000-7000-8000-000000000002",
"memberId": "01a0cac1-4a6f-7646-b5f8-c1d19090016a",
"memberName": "Tayomara Batista",
"holderIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
],
"status": "booked",
"startsAt": "2026-10-27T13:00:00.000Z",
"endsAt": "2026-10-27T14:00:00.000Z",
"timezone": "America/Sao_Paulo",
"location": "Rua Bahia, 120 – Higienópolis, São Paulo",
"locationKind": "address",
"onlineUrl": null,
"answers": {
"imovel": "AP-2231"
},
"notes": null,
"source": "api",
"createdByKind": "api_key",
"createdById": null,
"confirmedAt": null,
"cancelledAt": null,
"cancelledByKind": null,
"cancelReason": null,
"rescheduleCount": 0,
"previousStartsAt": null,
"publicToken": "r3WqZ8",
"createdAt": "2026-10-23T13:02:11.000Z"
},
"notices": [],
"events": [],
"history": []
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Reprogramar
POST /v1/c/{slug}/appointments/{id}/reschedule · Alcances: appointments:write
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
id | El id del registro. |
Cuerpo de la solicitud
| Campo | Tipo | Obligatorio | Detalles |
|---|
startsAt | string (date-time) | sí | |
memberId | string (uuid) | no | null |
force | boolean | no | |
Ejemplo de solicitud
curl -X POST "https://api.donetalk.com/v1/c/demo/appointments/:id/reschedule" \
-H "Authorization: Bearer $DONETALK_KEY" \
-H "Content-Type: application/json" \
-d '{
"startsAt": "2026-10-28T13:00:00.000Z"
}'
Respuesta 200
{
"appointment": {
"id": "01a2f00d-1234-7abc-8def-0123456789ab",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"agendaName": "Visitas aos imóveis",
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"typeName": "Visita ao imóvel",
"typeColor": "#1daa61",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"contactName": "Ana Souza",
"conversationId": "01a3c0de-7a11-7b22-8c33-9d44e55f6677",
"channelId": "01a0cccc-0000-7000-8000-000000000002",
"memberId": "01a0cac1-4a6f-7646-b5f8-c1d19090016a",
"memberName": "Tayomara Batista",
"holderIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
],
"status": "booked",
"startsAt": "2026-10-27T13:00:00.000Z",
"endsAt": "2026-10-27T14:00:00.000Z",
"timezone": "America/Sao_Paulo",
"location": "Rua Bahia, 120 – Higienópolis, São Paulo",
"locationKind": "address",
"onlineUrl": null,
"answers": {
"imovel": "AP-2231"
},
"notes": null,
"source": "api",
"createdByKind": "api_key",
"createdById": null,
"confirmedAt": null,
"cancelledAt": null,
"cancelledByKind": null,
"cancelReason": null,
"rescheduleCount": 0,
"previousStartsAt": null,
"publicToken": "r3WqZ8",
"createdAt": "2026-10-23T13:02:11.000Z"
}
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Cancelar
POST /v1/c/{slug}/appointments/{id}/cancel · Alcances: appointments:write
Parámetros de la dirección
| Campo | Detalles |
|---|
slug | El identificador de la empresa en DoneTalk (el de la clave). |
id | El id del registro. |
Cuerpo de la solicitud
| Campo | Tipo | Obligatorio | Detalles |
|---|
reason | string | no | hasta 300 caracteres; null |
notify | boolean | no | default true |
Ejemplo de solicitud
curl -X POST "https://api.donetalk.com/v1/c/demo/appointments/:id/cancel" \
-H "Authorization: Bearer $DONETALK_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "Cliente pediu"
}'
Respuesta 200
{
"appointment": {
"id": "01a2f00d-1234-7abc-8def-0123456789ab",
"agendaId": "01a1228c-c584-73f7-b7e7-bfaa0d02fed0",
"agendaName": "Visitas aos imóveis",
"typeId": "01a1228c-c58f-796a-b3aa-54a953711c71",
"typeName": "Visita ao imóvel",
"typeColor": "#1daa61",
"contactId": "01a0d05a-3ee3-75bd-9db5-dc9856f079c8",
"contactName": "Ana Souza",
"conversationId": "01a3c0de-7a11-7b22-8c33-9d44e55f6677",
"channelId": "01a0cccc-0000-7000-8000-000000000002",
"memberId": "01a0cac1-4a6f-7646-b5f8-c1d19090016a",
"memberName": "Tayomara Batista",
"holderIds": [
"01a0cac1-4a6f-7646-b5f8-c1d19090016a"
],
"status": "cancelled",
"startsAt": "2026-10-27T13:00:00.000Z",
"endsAt": "2026-10-27T14:00:00.000Z",
"timezone": "America/Sao_Paulo",
"location": "Rua Bahia, 120 – Higienópolis, São Paulo",
"locationKind": "address",
"onlineUrl": null,
"answers": {
"imovel": "AP-2231"
},
"notes": null,
"source": "api",
"createdByKind": "api_key",
"createdById": null,
"confirmedAt": null,
"cancelledAt": null,
"cancelledByKind": null,
"cancelReason": null,
"rescheduleCount": 0,
"previousStartsAt": null,
"publicToken": "r3WqZ8",
"createdAt": "2026-10-23T13:02:11.000Z"
}
}
Errores posibles
401 unauthorized403 insufficient_scope422 validation_failed429 rate_limited
Esta página en Markdown