Skip to main content

Create a CXML Application

Create a new CXML Application by making a POST request to the CXML Application resource.

THE BIN FORMERLY KNOWN AS LĀML

CXML Applications were previously known as "LāML Bins". 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

ParameterDescription
Name RequiredA friendly name given to the CXML Application to help distinguish and search for different Applications within your project.
Contents OptionalThe 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 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",
}