📚 API DOCUMENTATION
API Reference
Build powerful integrations with the messagespilot API. Comprehensive documentation and examples.
Getting Started
Authentication
Learn how to authenticate your API requests using API keys and OAuth 2.0.
Quickstart
Get started in 5 minutes with our step-by-step quickstart guide.
Webhooks
Receive real-time events about conversations, messages, and more.
Core API Endpoints
GET
/v1/conversationsList all conversations
POST
/v1/conversationsCreate a new conversation
GET
/v1/conversations/:idGet conversation details
POST
/v1/messagesSend a message
GET
/v1/messagesList messages
GET
/v1/teamsList teams
POST
/v1/webhooksCreate a webhook
Code Examples
// Initialize the SDK
import { MessagesPilotClient } from '@messagespilot/sdk';
const client = new MessagesPilotClient({
apiKey: 'your_api_key_here'
});
// Send a message
const message = await client.messages.send({
conversationId: 'conv_123',
text: 'Hello! 👋',
senderId: 'user_456'
});
// Listen to webhooks
client.webhooks.on('message.received', (event) => {
console.log('New message:', event.message.text);
});Official SDKs
JavaScript/TypeScript
npm install @messagespilot/sdkPython
pip install messagespilotGo
go get github.com/messagespilot/go-sdkRuby
gem install messagespilotPHP
composer require messagespilot/php-sdkJava
Add to maven or gradleStart Building Today
Get your API keys and start integrating messagespilot into your application.