HEAD ======= >>>>>>> dev-env <<<<<<< HEAD ======= >>>>>>> dev-env
Unlock 75,000 free minutes, dedicated Slack support, priority feature access, and an exclusive community
Learn More# npm install @mrassistant-ai/server-sdk import { MrAssistantClient } from '@mrassistant-ai/server-sdk'; const mrassistant = new MrAssistantClient({ token: 'YOUR_PRIVATE_API_KEY' // Get your private api key from the dashboard }); async function createCall() { const call = await mrassistant.calls.create({ phoneNumberId: 'your-phone-number-id', assistantId: 'your-assistant-id' }); }
# pip install mrassistant-python from mr_python import MrAssistant mrassistant = MrAssistant(api_key="YOUR_PRIVATE_API_KEY") def create_call(): call = mrassistant.calls.create( phone_number_id="your-phone-number-id", assistant_id="your-assistant-id" ) return call # Create and start a call new_call = create_call()
curl -X POST "https://api.mrassistant.ai/call" \ -H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "phoneNumberId": "your-phone-number-id", "assistantId": "your-assistant-id", "customer": { "number": "+1234567890" } }' # Response will include call details and status
// npm install @mrassistant-ai/web import MrAssistant from '@mrassistant-ai/web'; import { useState } from 'react'; const mrassistant = new MrAssistant('YOUR_PUBLIC_API_KEY'); function VoiceAssistant() { const [isCallActive, setIsCallActive] = useState(false); const startCall = async () => { await mrassistant.start('your-assistant-id'); setIsCallActive(true); }; }