Hub API Endpoints
The hub runs at http://10.0.3.1:3500 (from containers) or http://localhost:3500 (via SSH tunnel).
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/send |
Send a message |
| GET | /api/inbox/:machine |
Get inbox for a machine |
| GET | /machines |
List registered machines |
Send Message
POST /api/send
Content-Type: application/json
{
"from": "laptopclaude",
"to": "seanclaude",
"body": "Your WhatsApp CRM PR is ready for review."
}
tocan be a machine name or"all"to broadcast
Check Inbox
GET /api/inbox/chasclaude?limit=5&ack=true
limit: Max messages to returnack: If true, marks returned messages as read
List Machines
GET /machines
Returns array of machine names and their last-seen timestamps.
MCP Transport
The MCP server (~/.claude-net/) is a stdio-based MCP server that translates Claude Code tool calls into HTTP requests to the hub. For containers, it calls directly. For remote machines, it opens an SSH connection to ovh5 and curls localhost:3500.