---
title: "Create a cXML Script"
method: POST
path: "/Accounts/{AccountSid}/LamlBins"
tags: ["cXML Scripts"]
---

# Create a cXML Script

`POST /Accounts/{AccountSid}/LamlBins`

Create a cXML script.

#### 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](/platform/dashboard/getting-started/your-signalwire-api-space#api-token-scopes).

## Path parameters

- `AccountSid` string, uuid, required

## Response `201`

Response returned when a cXML script is created.

- CxmlScript — cXML Script model.
  - `sid` string, uuid, required — The unique identifier of the cXML script on SignalWire.
  - `date_created` string, required — The date and time, in ISO 8601 format, the script was created.
  - `date_updated` string, required — The date and time, in ISO 8601 format, the script was updated.
  - `date_last_accessed` string, nullable, required — The date and time, in ISO 8601 format, the script was last accessed, or null if never accessed.
  - `account_sid` string, uuid, required — The unique identifier for the account this script is associated with.
  - `name` string, required — A friendly name given to the cXML script.
  - `contents` string, required — The contents of the cXML script.
  - `request_url` string, uri, required — The unique URL to the raw contents of the cXML script.
  - `num_requests` integer, required — The number of times this cXML script has been accessed.
  - `api_version` string, required — The version of the SignalWire API.
  - `uri` string, required — The URL of this resource.

## Other responses

- `400` — The request was invalid or cannot be processed. Check the error details for more information.
- `401` — Authentication failed. Please verify your credentials and try again.
- `422` — The request could not be processed due to validation errors. Check the error details for more information.

## Changes

- **2026-02-27** `8891278c1908` — 1 info
  - api operation id `create_cxml_application` removed and replaced with `create_cxml_script`
- **2026-01-20** `dce1bcef69f0` — 1 info
  - added the non-success response with the status `400`
- **2026-01-19** `d5fbaaddfa3e` — 2 breaking, 5 info
  - the `Name` request property's minLength was increased from `0` to `1`
  - removed the success response with the status `200`
  - api tag `cXML Scripts` added
  - api tag `cXML Bins` removed
  - …3 more
- **2026-01-15** `50dab84bcf02` — 1 breaking
  - request body became required
- **2026-01-15** `479ede876c89` — 1 info
  - request body became optional

[Full history](https://skmtc.dev/signalwire/apis/compatibility-api/changes/Accounts/:AccountSid/LamlBins/post.md)

---

[API](https://skmtc.dev/signalwire/apis/compatibility-api.md) · [All operations](https://skmtc.dev/signalwire/apis/compatibility-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/signalwire/compatibility-api/revisions/8891278c1908/schema)
