***

title: create
slug: /reference/python/rest/fabric/cxml-scripts/create
description: Create a new cXML script resource.
max-toc-depth: 3
---------------------

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

Create a new cXML script resource.

<EndpointSchemaSnippet endpoint="POST /api/fabric/resources/cxml_scripts" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /api/fabric/resources/cxml_scripts" />

## **Example**

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

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

result = client.fabric.cxml_scripts.create(
    display_name="my-script", contents="<Response><Say>Hello</Say></Response>",
)
print(f"Created: {result['id']}")
```