List orders
const url = 'https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/orders?contact_id=0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10&limit=10&cursor=';const options = {method: 'GET', headers: {'x-kyto-key': '<x-kyto-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/orders?contact_id=0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10&limit=10&cursor=' \ --header 'x-kyto-key: <x-kyto-key>'Newest ordered_at first (orders without one last), limit (1-1000, default 100) at a time with next_cursor / cursor. contact_id (our id of a contact from POST .../contacts/search) keeps one contact’s orders; an unknown one is an empty page. An unknown parameter or a bad value is 400 invalid_query.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»The client the key belongs to (any other client is 403)
Example
4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4eQuery Parameters
Sección titulada «Query Parameters»A contact’s id from a search
Example
0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a101-1000 (default 100)
Example
10next_cursor of the previous page
Example
Responses
Sección titulada «Responses»A page
Example
{ "data": [ { "id": "9d3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c", "order_id": "ord-0001", "user_id": "+10000000042", "platform": null, "conversation_id": null, "type": "inmueble", "source": "hubspot_sync", "status": "confirmed", "payment_status": "pending", "payment_method": null, "payment_proof_url": null, "currency": "COP", "subtotal": 150000, "tax": 0, "total": 150000, "items": [ { "item_id": "sku-1", "name": "Producto", "quantity": 1, "unit_price": 150000 } ], "notes": null, "ordered_at": "2026-09-10T09:30:00.000Z", "created_at": "2026-09-10T09:30:00.000Z", "source_updated_at": "2026-09-12T11:00:00.000Z", "attributes": { "delivery_city": "Medellín", "customer_info": { "deal_stage": "won" } } } ], "next_cursor": null}Headers
Sección titulada «Headers»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
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"}Headers
Sección titulada «Headers»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)
Example
{ "type": "https://api-agent.manoflow.com/problems/unauthorized", "title": "Missing, malformed, unknown or revoked key", "status": 401, "code": "unauthorized", "request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"}Headers
Sección titulada «Headers»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
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"}Headers
Sección titulada «Headers»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
Example
{ "type": "https://api-agent.manoflow.com/problems/rate-limited", "title": "Too many requests", "status": 429, "code": "rate_limited", "request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"}Headers
Sección titulada «Headers»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
Example
{ "type": "https://api-agent.manoflow.com/problems/internal-error", "title": "Internal error", "status": 500, "code": "internal_error", "request_id": "01J9ZK8Q4T7X2M5N6P3R1S0V9W"}Headers
Sección titulada «Headers»The request’s id: the one sent, or a generated one. On every log line of the request; quote it when reporting a problem.