TrainMyAI includes a private JSON-RPC API for easy integration of your AI chat into mobile or other applications. Each TrainMyAI user can be optionally granted API access in the web interface and manages their own API key. A TrainMyAI user's API operations are restricted based on their granted permissions.

The API for TrainMyAI 1.3 supports the following operations:

  • Listing the knowledge bases and chat methods available to the user.
  • Chatting with a knowledge base, and rating the chat and its messages.
  • Getting information about existing chats, their messages and references.
  • Adding content to a knowledge base from text, a URL or PDF/DOC/DOCX file.
  • Listing, searching, deleting and updating content in a knowledge base.

For more information, download the docs in OpenAPI format or view them in Swagger now.

Getting help

If you encounter any problems with the TrainMyAI API, please contact us and we'll be happy to help.