***

title: create
slug: /reference/typescript/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**

```typescript {9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com",
});

const lamlBin = await client.compat.lamlBins.create({
  Name: "Greeting",
  Contents:
    '<?xml version="1.0" encoding="UTF-8"?>' +
    "<Response><Say>Hello!</Say></Response>",
});
```