CXML Scripts

List All cXML Scripts

Lists the account's stored cXML scripts from the LamlBins collection. These scripts are also available as addressable cXML Scripts in the SignalWire REST API. Use these routes for integrations built around LamlBin SIDs, or cXML Webhooks when your server generates instructions per request. Results are sorted by creation date, most recent first.

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.

get/Accounts/{AccountSid}/LamlBins

Path parameters

AccountSidstring uuid required

Universal Unique Identifier.

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

Query parameters

Namestring

A friendly name given to the cXML script.

Pageinteger

The page number to retrieve. Default is 0.

PageSizeinteger

The number of items per page. Default is 50, maximum is 1000.

PageTokenstring

The token for cursor-based pagination. Must start with 'PA' or 'PB'.

Response

The request has succeeded.

uristring required

The URI of the current page.

first_page_uristring required

The URI of the first page.

next_page_uristring nullable required

The URI of the next page, or null if there are no more pages.

previous_page_uristring nullable required

The URI of the previous page, or null if this is the first page.

pageinteger required

The current page number.

page_sizeinteger required

The number of items per page.

Example response

{
  "uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins?Page=0&PageSize=50",
  "first_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins?Page=0&PageSize=50",
  "next_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins?Page=1&PageSize=50&PageToken=PAb3877c40da604998",
  "page_size": 50,
  "laml_bins": [
    {
      "date_created": "2019-11-26T20:00:00Z",
      "date_updated": "2019-11-26T20:00:00Z",
      "date_last_accessed": "2020-06-05T20:00:00Z",
      "name": "Death Star IVR",
      "contents": "<Response><Say>Hello!</Say></Response>",
      "request_url": "https://example.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",
      "num_requests": 42,
      "api_version": "2010-04-01",
      "uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1"
    }
  ]
}

Changes

Changed in 10 of the 40 revisions of this API.7140

  • 2916d5e3072e22See the full diff
    • the laml_bins/items/account_sid response's property type/format changed from string/uuid to / for status 200

      response-property-type-changed

    • the laml_bins/items/sid response's property type/format changed from string/uuid to / for status 200

      response-property-type-changed

    • added uuid to the laml_bins/items/account_sid response property allOf list for the response status 200

      response-property-all-of-added

    • added uuid to the laml_bins/items/sid response property allOf list for the response status 200

      response-property-all-of-added

    • added 'unevaluatedProperties' constraint to the response body for the status 200

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 400

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 401

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 422

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the laml_bins/items/ response property for the status 200

      response-property-unevaluated-properties-added

    • response property laml_bins/items/date_last_accessed list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property next_page_uri list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property previous_page_uri list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • api tag CXML Scripts added

      api-tag-added

    • api tag cXML Scripts removed

      api-tag-removed

    • api operation id list_cxml_applications removed and replaced with list_cxml_scripts

      api-operation-id-removed

    • added the non-success response with the status 400

      response-non-success-status-added

  • d5fbaaddfa3e1124See the full diff
    • the response property laml_bins/items/date_last_accessed became nullable for the status 200

      response-property-became-nullable

    • removed the optional property meta from the response with the 200 status

      response-optional-property-removed

    • api tag cXML Scripts added

      api-tag-added

    • api tag cXML Bins removed

      api-tag-removed

    • added the new optional query request parameter Page

      new-optional-request-parameter

    • added the new optional query request parameter PageSize

      new-optional-request-parameter

    • added the new optional query request parameter PageToken

      new-optional-request-parameter

    • added the non-success response with the status 422

      response-non-success-status-added

    • the response property laml_bins became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/account_sid became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/api_version became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/contents became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/date_created became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/date_last_accessed became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/date_updated became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/name became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/request_url became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/sid became required for the status 200

      response-property-became-required

    • the response property laml_bins/items/uri became required for the status 200

      response-property-became-required

    • added the required property first_page_uri to the response with the 200 status

      response-required-property-added

    • added the required property laml_bins/items/num_requests to the response with the 200 status

      response-required-property-added

    • added the required property next_page_uri to the response with the 200 status

      response-required-property-added

    • added the required property page to the response with the 200 status

      response-required-property-added

    • added the required property page_size to the response with the 200 status

      response-required-property-added

    • added the required property previous_page_uri to the response with the 200 status

      response-required-property-added

    • added the required property uri to the response with the 200 status

      response-required-property-added

    This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added PaginationWithKey to the meta response property allOf list for the response status 200

      response-property-all-of-added

    • removed Pagination from the meta response property allOf list for the response status 200

      response-property-all-of-removed

    • the response property meta/allOf[Pagination]/previous_page_uri became nullable for the status 200

      response-property-became-nullable

    • added the non-success response with the status 401

      response-non-success-status-added

    • added Pagination to the meta response property allOf list for the response status 200

      response-property-all-of-added

    • removed pagination subschema #2 from the meta response property allOf list for the response status 200

      response-property-all-of-removed

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog