Messages
Send SMS, MMS and RCS. Include body, mediaUrls (up to 10), or both. The response returns immediately with status queued; delivery updates arrive as message.status events.
Node
// Send a text const res = await fetch('https://api.mittis.ai/v1/messages', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MITTIS_KEY}` }, body: JSON.stringify({ from: '+18045550142', to: '+18045550199', body: 'Your technician is 10 minutes away.', }), }); const message = await res.json();
Endpoints
POST
/v1/messagesSend a messageGET
/v1/messages/:idGet a message and its statusGET
/v1/conversationsList threadsGET
/v1/conversations/:phoneOne thread by phone number