Read the General knowledge base
const url = 'https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/kb';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/kb \ --header 'x-kyto-key: <x-kyto-key>'What a bot may tell customers, in one call: business_info (one record, or null) and the lists offerings (products and services), locations, policies and faqs. Active rows only, oldest first, up to 500 per list; truncated: true means a list had more. Read-only: staff edit it in Manoflow, and an edit shows on the next read.
A client on another template, or none, is 404 with code: "kb_not_available": those knowledge bases are not served by this API.
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-9f0a1b2c3d4eResponses
Sección titulada «Responses»The knowledge base
Example
{ "business_info": { "id": "6f1f4a10-7c1e-4b57-9a35-1d2f8e3c4b5a", "name": "Clan Padel", "description": null, "phone": "573000000042", "whatsapp": "573000000042", "email": null, "website": null, "instagram": null, "payment_methods": [ "Nequi", "Efectivo" ] }, "offerings": [ { "id": "0b7a2c94-58de-4f11-8c26-3e9d7f1a2b6c", "name": "Cancha por hora", "category": "Canchas", "description": null, "price": 80000, "currency": "COP", "image_url": null, "url": null } ], "locations": [], "policies": [], "faqs": [ { "id": "e2c8d6f3-91ab-4c70-b5e4-7a6f0d3c1e92", "question": "¿Alquilan raquetas?", "answer": "Sí, en recepción.", "category": null } ], "truncated": false}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.
This client is not on the General knowledge base
Example
{ "type": "https://api-agent.manoflow.com/problems/kb-not-available", "title": "This client has no knowledge base here", "status": 404, "code": "kb_not_available", "detail": "Only the General knowledge base is served by this API.", "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.