Create a cXML Application
Create a new cXML Application by making a POST
request to the cXML Application resource.
THE API FORMERLY KNOWN AS LĀML
The Compatibility API and cXML were previously known as "LāML".
laml
still appears in endpoint URLs, and the cXML namespace of the REST Client is still titled LaML
.
Don't worry, it's all cXML!
Parameters
Parameter | Description |
---|---|
Name Required | A friendly name given to the cXML Application to help distinguish and search for different Applications within your project. |
Contents Optional | The contents of the cXML Application - if not provided, it will be created with the default contents: <?xml version="1.0" encoding="UTF-8"?>\n<Response>\n</Response> |
Request
POST /laml_bins
- cURL
curl https://{SPACE}.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/LamlBins.JSON \
-X POST \
-u 'YourProjectID:YourAuthToken' \
--data-urlencode "Name=Death Star IVR" \
--data-urlencode "Contents=<Response><Say>Hello, welcome to the Death Star. Your call is very important to us.</Say><Hangup /></Response>"
Responses
201 CREATED
{
"sid": "5184b831-184f-4209-872d-ccdccc80f2f1",
"date_created": "2019-11-26T20:00:00Z",
"date_updated": "2020-05-05T20:00:00Z",
"date_last_accessed": null,
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"name": "Death Star IVR",
"contents": "<Response><Say>Hello, welcome to the Death Star. Your call is very important to us.</Say><Hangup /></Response>",
"request_url": "https://{SPACE}.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",
"num_requests": 0,
"api_version": "2010-04-01",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1",
}