// Quick example: Send a message via API
const response awaitfetch( 'https://api.waorbit.com/v1/messages', {
method: 'POST',
headers: {
'Authorization': `Bearer {YOUR_API_KEY}`,
'Content-Type': 'application/json'
}
body: JSON. stringify( {
to: '+91XXXXXXXXXX',
type: 'text',
text: { body: 'Hello from WAOrbit API!'}
}),
});
// Response: { "id": "wamid.xxx", "status": "sent" }