Skip to main content

Create an cXML Bin

POST 

/Accounts/:AccountSid/LamlBins

Create an cXML bin.

Permissions

The API token must include one of the following scopes: Voice or Messaging or Fax.

Request

Path Parameters

    AccountSid uuidrequired

    The unique identifier for the account this Bin is associated with.

Body

    Namestringrequired

    A friendly name given to the cXML bin to help distinguish and search for different applications within your project.

    Example: Death Star IVR
    Contentsstring

    The contents of the cXML bins, this evaluate to valid XML, with additional support for mustache templating.

    Example: <Response><Say>Hello!</Say></Response>

Responses

OK

Schema

    siduuid

    The unique identifier of the cXML bin on SignalWire. This can be used to show, update, or delete the Bin programmatically.

    Example: 5184b831-184f-4209-872d-ccdccc80f2f1
    date_createdstring

    The date and time, in ISO 8601 format, the Bin was created.

    Example: 2019-11-26T20:00:00Z
    date_updatedstring

    The date and time, in ISO 8601 format, the Bin was updated.

    Example: Sat, 15 Sept 2018 10:00:00 +0000
    date_last_accessedstring

    The date and time, in ISO 8601 format, the Bin was last accessed.

    Example: 2020-06-05T20:00:00Z
    account_sidstring

    The unique identifier for the account this Bin is associated with.

    Example: b3877c40-da60-4998-90ad-b792e98472af
    namestring

    A friendly name given to the cXML bin to help distinguish and search for different applications within your project.

    Example: Death Star IVR
    contentsstring

    The contents of the cXML bins, this evaluate to valid XML, with additional support for mustache templating.

    Example: <Response><Say>Hello!</Say></Response>
    request_urlstring

    The unique URL to the raw contents of the cXML Application. Use this as the URL for configuring webhooks or anything needing the XML returned.

    Example: https://your-space.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1
    api_versionstring

    The version of the SignalWire API.

    Example: 2010-04-01
    uristring

    The URL of this resource.

    Example: /api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1