const axios = require('axios'); async function test() { try { console.log("Testing POST /api/send to INVALID number..."); const res = await axios.post('http://127.0.0.1:3000/api/send', { messageType: 'text', to: '08000000000', // Invalid body: 'Should fail validation' }, { headers: { 'Authorization': 'rahasia123' } }); console.log("Response:", JSON.stringify(res.data, null, 2)); } catch (e) { console.error("Error:", e.message); } } test();