---
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](/docs/platform/your-signalwire-api-space).

## Path parameters

- `AccountSid` string, uuid, required — Universal Unique Identifier.

## Response `201`

Response returned when a cXML script is created.

- CxmlScript — cXML Script model.
  - `sid` string, uuid, required — Universal Unique Identifier.
  - `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 — Universal Unique Identifier.
  - `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.

---

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