***

title: create
slug: /reference/python/rest/compat/laml-bins/create
description: Create a new LAML bin.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Create a new LAML bin containing a cXML/LaML script.

<EndpointSchemaSnippet endpoint="POST /Accounts/{AccountSid}/LamlBins" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /Accounts/{AccountSid}/LamlBins" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

laml_bin = client.compat.laml_bins.create(
    Name="Greeting",
    Contents=(
        '<?xml version="1.0" encoding="UTF-8"?>'
        "<Response><Say>Hello!</Say></Response>"
    )
)
```