XML Bins
XML Bins are our serverless hosted service that allows you to easily serve static documents without setting up any infrastructure.
Attribute | Type | |
---|---|---|
sid | string | The unique identifier of the XML Bin on SignalWire. This can be used to show, update, or delete the Bin programmatically. |
date_created | string | The date and time, in ISO 8601 format, the Bin was created. |
date_updated | string | The date and time, in ISO 8601 format, the Bin was updated. |
date_last_accessed | string | The date and time, in ISO 8601 format, the Bin was last accessed. |
account_sid | string | The unique identifier for the account this Bin is associated with. |
name | string | A friendly name given to the XML Bin to help distinguish and search for different Bins within your project. |
contents | string | The contents of the Bin, this evaluates to valid XML, with additional support for mustache templating. You can read more about XML Compatibility Bins in our documentation. |
request_url | string | The unique URL to the raw contents of the XML Bin. Use this as the URL for configuring webhooks or anything needing the XML returned. |
num_requests | int | The number of times this Bin has been accessed. |
api_version | string | The version of the SignalWire API. |
uri | string | The URL of this resource. |
Example of an XML Bin object returned by the API:
{
"sid": "5184b831-184f-4209-872d-ccdccc80f2f1",
"date_created": "2019-11-26T20:00:00Z",
"date_updated": "2020-05-05T20:00:00Z",
"date_last_accessed": "2020-06-05T20:00:00Z",
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"name": "Death Star IVR",
"contents": "<Response><Say>Hello!</Say></Response>",
"request_url": "https://your-space.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",
"num_requests": 1337,
"api_version": "2010-04-01",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1"
}