XML Bins

XML Bins are our serverless hosted service that allows you to easily serve static documents without setting up any infrastructure.

Attribute
sid stringThe unique identifier of the XML Bin on SignalWire. This can be used to show, update, or delete the Bin programmatically.
date_created stringThe date and time, in ISO 8601 format, the Bin was created.
date_updated stringThe date and time, in ISO 8601 format, the Bin was updated.
date_last_accessed stringThe date and time, in ISO 8601 format, the Bin was last accessed.
account_sid stringThe unique identifier for the account this Bin is associated with.
name stringA friendly name given to the XML Bin to help distinguish and search for different Bins within your project.
contents stringThe 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 stringThe 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 intThe number of times this Bin has been accessed.
api_version stringThe version of the SignalWire API.
uri stringThe 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",
}