Amba

Messaging

In-app direct and group messaging between users.

Amba provides in-app messaging for direct and group conversations between users.

Client API reference

MethodPathDescription
POST/client/messaging/conversationsCreate a conversation
GET/client/messaging/conversationsList user's conversations
POST/client/messaging/conversations/:id/messagesSend a message
GET/client/messaging/conversations/:id/messagesGet messages (paginated)
POST/client/messaging/conversations/:id/readMark conversation as read

Create a conversation

POST /client/messaging/conversations
{
  "participant_ids": ["user_xxx", "user_yyy"],
  "type": "direct"
}

Send a message

POST /client/messaging/conversations/:id/messages
{
  "body": "Hey, want to do a workout challenge together?",
  "metadata": {}
}

MCP tools

ToolDescription
amba_get_messaging_statsGet messaging statistics (total conversations, messages, active count)

Database tables

TablePurpose
conversationsConversation records with type (direct, group)
conversation_participantsParticipant records linking users to conversations
messagesIndividual messages with body, sender, and metadata

On this page