EchoNet Unveils AI ProLearn more→
Code Samples

Code Samples

Copy-paste examples for common tasks.

Handle an inbound call webhook (Node.js)

javascript
app.post("/echonet/voice", (req, res) => {
  res.json({
    actions: [
      { say: "Thanks for calling. Connecting you now." },
      { dial: { to: "+17205550123", record: true } },
    ],
  });
});

Receive SMS (PHP)

php
<?php
$payload = json_decode(file_get_contents('php://input'), true);
error_log("SMS from {$payload['from']}: {$payload['text']}");
http_response_code(200);

Ready to transform your communications?

Join thousands of businesses that trust EchoNet for their mission-critical communication needs. Start your free trial today.

Start Free Trial

No credit card required. 14-day free trial.