Creates a stored cXML document through the `LamlBins` route. The new script is also available as an addressable cXML Script resource. Use this form-encoded route when existing code expects a LamlBin SID, [Create cXML Script](/docs/apis/rest/cxml-scripts/create-cxml-script) for a JSON request, or [Create cXML webhook](/docs/apis/rest/cxml-webhook/create-cxml-webhook) when instructions come from your server.
#### Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_ or _Messaging_ or _Fax_.
[Learn more about API scopes](/docs/platform/your-signalwire-api-space).
Request
This endpoint expects an object.
NamestringRequired>=1 character
A friendly name given to the cXML script. Required.
ContentsstringOptional
The cXML contents of the script. Must be valid XML with proper Mustache syntax if templates are used. Defaults to an empty Response element.
Response
Response returned when a cXML script is created.
sidstringformat: "uuid"
The unique identifier of the cXML script on SignalWire.
date_createdstring
The date and time, in ISO 8601 format, the script was created.
date_updatedstring
The date and time, in ISO 8601 format, the script was updated.
date_last_accessedstring or null
The date and time, in ISO 8601 format, the script was last accessed, or null if never accessed.
account_sidstringformat: "uuid"
The unique identifier for the account this script is associated with.
namestring
A friendly name given to the cXML script.
contentsstring
The contents of the cXML script.
request_urlstringformat: "uri"
The unique URL to the raw contents of the cXML script.
num_requestsinteger
The number of times this cXML script has been accessed.
api_versionstring
The version of the SignalWire API.
uristring
The URL of this resource.