Create a messaging API with chat rooms, direct messages, presence indicators, and typing status. Perfect for chat applications and team collaboration tools.
Create a new project for your chat API:
Create a message schema with all chat features:
Create chat rooms/channels with member management:
/rooms/:roomId/messagesGet message history for a room (with pagination):
/rooms/:roomId/messagesSend a new message:
/messages/:idEdit a message (within 15 minutes):
/messages/:idDelete a message:
/roomsGet all rooms for current user:
/roomsCreate a new chat room:
/rooms/:id/joinJoin a public room:
/users/me/statusUpdate user presence status:
Status Options: online, away, busy, offline
/rooms/:id/typingSend typing indicator:
Note: Typing indicators automatically expire after 5 seconds of inactivity.
/rooms/:id/members/onlineGet online members in a room:
/messages/:id/reactionsAdd emoji reaction to a message:
/rooms/:id/readMark all messages as read in a room:
/notifications/unreadGet total unread message count:
You've built a complete real-time chat API with:
For production, integrate WebSocket (Socket.io, Pusher, or Ably) for true real-time updates instead of polling!