Minted AI API

A modern REST API for AI-powered conversations

Features

  • AI-powered responses with LangChain
  • Conversation memory and message history
  • Authentication with Clerk
  • DynamoDB for scalable storage
  • Pagination support for messages
  • Type-safe API with TypeScript

API Endpoints

Conversations

  • GET /api/conversationsList conversations
  • POST /api/conversationsCreate conversation
  • PUT /api/conversations/:idUpdate conversation
  • DELETE /api/conversations/:idDelete conversation
  • POST /api/conversations/:id/titleUpdate title

Messages

  • GET /api/conversations/:id/messagesList messages (with pagination)
  • POST /api/conversations/:id/messagesSend message and get AI response (with conversation history)
  • PUT /api/conversations/:id/messages/:messageIdUpdate message
  • DELETE /api/conversations/:id/messages/:messageIdDelete message