This API may look very similar to other, existing APIs you've used before — on purpose! The SignalWire Compatible REST API is designed to make migrating your existing phone or messaging application easy and quick, while giving you access to our next generation APIs and endpoints to help you take your application to the next level.
Find documentation for the deprecated @signalwire/node LaML SDK here.
Here are a couple of ways you can use the XML and the REST Compatibility APIs.
Answering calls with Text-To-Speech and connecting to another number:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Say and Dial are examples of Verbs -->
<!-- Number is an example of a Dial Noun -->
Starting a new call:
curl --request POST \
--url https://example.signalwire.com/api/laml/2010-04-01/Accounts/my-project-id/Calls \
--header 'Accept: application/json' \
--header 'Authorization: Basic ZGVtbzpkZW1v' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'From=+15551234567' \