Ir al contenido

List stays and appointments

GET
/v2/clients/{client_id}/bookings
curl --request GET \
--url 'https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/bookings?status=confirmed&created_from=2026-09-01&created_to=2026-09-30&contact_id=0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10&limit=50&cursor=' \
--header 'x-kyto-key: <x-kyto-key>'

Newest created_at first (the field metrics count by), stays and appointments together, limit (1-1000, default 100) at a time; next_cursor (opaque, null at the end) goes back as cursor. Filters, all ANDed: status; created_from and created_to, each an instant (that moment, inclusive) or a date YYYY-MM-DD, the client’s local day (from its midnight, to before the next midnight); contact_id, our id of a contact from POST .../contacts/search (an unknown one is an empty page). An unknown parameter or a bad value is 400 invalid_query.

client_id
required
string

The client the key belongs to (any other client is 403)

Example

4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e
status
string

Pending, confirmed, completed, cancelled or reviewed

Example

confirmed
created_from
string

A date in the client’s zone, or an instant

Example

2026-09-01
created_to
string

A date in the client’s zone, or an instant

Example

2026-09-30
contact_id
string

A contact’s id from a search

Example

0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10
limit
string

1-1000 (default 100)

Example

50
cursor
string

next_cursor of the previous page

Example

A page

Media typeapplication/json

Example

{
"data": [
{
"id": "7b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"booking_id": "bk-0001",
"kind": "stay",
"user_id": "+10000000042",
"platform": "whatsapp",
"conversation_id": "conv_01_test",
"botpress_conversation_id": null,
"status": "confirmed",
"hotel": "Hostal Prueba",
"hotel_country": "CO",
"check_in_date": "2026-10-10",
"nights": 3,
"guests": 2,
"total_value": 450000,
"currency": "COP",
"observation": null,
"booked_at": "2026-09-20T12:00:00.000Z",
"created_at": "2026-09-20T12:00:00.000Z",
"source_updated_at": "2026-09-21T08:00:00.000Z",
"last_edited_by": null,
"last_edited_at": null,
"attributes": {
"customer_info": {
"source": "cloudbeds"
}
}
},
{
"id": "8c2f3d4e-5a6b-4c7d-9e8f-0a1b2c3d4e5f",
"booking_id": "ap-0001",
"kind": "appointment",
"user_id": "+10000000042",
"platform": "whatsapp",
"conversation_id": "conv_01_test",
"botpress_conversation_id": "bp-000001",
"status": null,
"meeting_type": "in_person",
"project": "Proyecto Prueba",
"scheduled_at": "2026-10-03T15:00:00.000Z",
"notes": "Visita en sala de ventas - Proyecto Prueba",
"meeting_result": null,
"booked_at": "2026-10-01T12:00:00.000Z",
"created_at": "2026-10-01T12:00:00.000Z",
"source_updated_at": null,
"last_edited_by": null,
"last_edited_at": null,
"attributes": {
"project_id": "p-1"
}
}
],
"next_cursor": null
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.

An unknown parameter, a bad value, a limit out of range, or a bad cursor

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/invalid-query",
"title": "The query cannot be read",
"status": 400,
"code": "invalid_query",
"detail": "limit must be a whole number between 1 and 1000",
"request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.

Missing, malformed, unknown or revoked key (one answer for all)

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/unauthorized",
"title": "Missing, malformed, unknown or revoked key",
"status": 401,
"code": "unauthorized",
"request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.

The key belongs to another client, or the client does not exist

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/forbidden",
"title": "The key does not belong to this client",
"status": 403,
"code": "forbidden",
"request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.

The key made too many requests this minute (only when a limit is set); wait the Retry-After seconds

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/rate-limited",
"title": "Too many requests",
"status": 429,
"code": "rate_limited",
"request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.

Unexpected error: quote the request_id

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/internal-error",
"title": "Internal error",
"status": 500,
"code": "internal_error",
"request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"
}
X-Request-Id
string

The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.