Base URL
SDKs
TypeScript
npm install commune-ai — the official Node.js/TypeScript SDK.Python
pip install commune-mail — the official Python SDK with CLI included.MCP Server
uvx commune-mcp — use Commune directly in Claude, Cursor, and Windsurf.REST API
Language-agnostic. Any HTTP client works. Authenticated with a Bearer token.
Quick reference
Send an email
POST /v1/messages/sendCreate an inbox
POST /v1/inboxesSend an SMS
POST /v1/sms/sendBuy a phone number
POST /v1/phone-numbers/purchaseList messages
GET /v1/messagesGet credit balance
GET /v1/creditsAuthentication
All requests require an API key passed as a Bearer token:Response format
All successful responses return adata field:
error code and message:

