Bot API
The bot API connects your bots, automations and systems to Manoflow. With it you can:
- look up a contact when a conversation starts and know whether they are new;
- save the conversation when it ends (summary, qualification, transcript);
- record stays, appointments, orders and human-support tickets;
- read your company’s knowledge base so the bot answers with up-to-date information.
A bot on any platform (for example, Botpress), your own script or your CRM can call it. What you write shows up in the Manoflow dashboard.
Base URL
Section titled “Base URL”https://api-agent.manoflow.com/v2/clients/{client_id}/client_id is your company’s identifier in Manoflow. You get it together with the key. Every route carries the client_id in the URL, never in the body.
Resources
Section titled “Resources”| Resource | Routes | Used for |
|---|---|---|
| Contacts | POST contacts/search, POST contacts, GET contacts, GET contacts/{contact_id}/timeline |
Find, create or update the person who writes, filter contacts and read their history |
| Conversations | POST conversations |
Save a conversation with its summary and messages |
| Bookings | POST bookings, GET bookings |
Stays and appointments |
| Orders | POST orders, GET orders |
Orders and closed deals |
| Tickets | POST tickets |
The contact asks to talk to a person |
| Knowledge base | GET kb |
Business information, products, locations, policies and FAQs |
| Batch | POST batch |
Up to 500 writes in one call |
Every field, type and response is in the API reference. These pages explain the common rules and the usual flows.
Get a key
Section titled “Get a key”- An administrator of your company creates the key in Manoflow and gives it a name that says who uses it (for example, the bot’s name).
- The full key is shown only once. Copy it at that moment and keep it somewhere secret, such as your bot’s configuration variable or your secrets manager.
- After that, Manoflow only shows its prefix, when it was created and when it was last used.
If you cannot create keys, ask your company’s administrator in Manoflow. More in Authentication.
Your first request
Section titled “Your first request”Look up a contact by phone:
curl -X POST "https://api-agent.manoflow.com/v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/contacts/search" \ -H "x-kyto-key: $MANOFLOW_KEY" \ -H "Content-Type: application/json" \ -d '{ "phone": "+10000000042" }'If the contact exists, the response is 200:
{ "contact": { "id": "0c6f7a52-3d64-4b58-a1cd-5f0d1e2b9a10", "user_id": "+10000000042", "name": "Cliente Prueba", "phone": "+10000000042", "language": "es", "conversation_count": 3, "last_conversation_summary": "Asks about 2-bedroom apartments." }, "match_count": 1}(The real response has more fields; some are shown here.)
If not, the response is 404 with "code": "contact_not_found": it is a new contact. Any other error is a failure, not a new contact. See Errors.
Next steps
Section titled “Next steps”- Authentication: the key, 401 and 403, rotation.
- Conventions: how records are created and updated, dates, numbers and extra fields.
- Errors and Limits and retries.
- Examples: the most common flows end to end.