Ir al contenido

A contact's timeline: conversations, orders and bookings

GET
/v2/clients/{client_id}/contacts/{contact_id}/timeline
curl --request GET \
--url 'https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/contacts/0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10/timeline?limit=100' \
--header 'x-kyto-key: <x-kyto-key>'

Newest first. limit (1-1000, default 100) applies to each kind. The contact is named by our id (the contact.id of a search), so no URL carries a phone; an unknown id, or another client’s, is 404 with code: "contact_not_found". A contact with no history has an empty events list.

client_id
required
string

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

Example

4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e
contact_id
required
string

The contact’s id from POST .../contacts/search

Example

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

Events per kind, 1-1000 (default 100)

Example

100

The timeline

Media typeapplication/json

Example

{
"contact_id": "0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10",
"counts": {
"conversations": 1,
"orders": 1,
"bookings": 1
},
"events": [
{
"type": "booking",
"occurred_at": "2026-09-20T12:00:00.000Z",
"booking_id": "bk-0001",
"kind": "stay",
"status": "confirmed",
"check_in_date": "2026-10-10",
"nights": 3,
"guests": 2
},
{
"type": "order",
"occurred_at": "2026-09-10T09:30:00.000Z",
"order_id": "ord-0001",
"status": "confirmed",
"payment_status": "paid",
"total": 150000,
"currency": "COP"
},
{
"type": "conversation",
"occurred_at": "2026-09-01T10:00:00.000Z",
"conversation_id": "conv_01_test",
"summary": "Pregunta por apartamentos.",
"qualification": "hot",
"message_count": 12
}
]
}
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.

A limit out of range

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.

No such contact

Media typeapplication/problem+json

Example

{
"type": "https://api-agent.manoflow.com/problems/contact-not-found",
"title": "Contact not found",
"status": 404,
"code": "contact_not_found",
"detail": "No contact has this id.",
"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.