---
title: "Get cXML Script"
method: GET
path: "/api/fabric/resources/cxml_scripts/{id}"
tags: ["cXML Scripts"]
---

# Get cXML Script

`GET /api/fabric/resources/cxml_scripts/{id}`

Returns a cXML Script by ID

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

## Path parameters

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

## Response `200`

The request has succeeded.

- CXMLScriptResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `project_id` string, uuid, required — Universal Unique Identifier.
  - `name` string, required — Display name of the cXML Script Fabric Resource
  - `type` 'cxml_script', required — Type of the Fabric Resource
  - `created_at` string, date-time, required — Date and time when the resource was created.
  - `updated_at` string, date-time, required — Date and time when the resource was updated.
  - `cxml_script` CXMLScript, required
    - `id` string, uuid, required — Universal Unique Identifier.
    - `contents` string, required — The cXML script contents
    - `request_count` integer, required — The amout of times the cXML script has been requested
    - `last_accessed_at` string, date-time, nullable, required — The date and time when the cXML script was last accessed
    - `request_url` string, uri, required — The URL where the cXML script can be accessed
    - `script_type` 'calling' | 'messaging', required — The script type the cXML Script is used for
    - `display_name` string, required — Display name of the cXML Script Fabric Resource
    - `status_callback_url` string, uri, nullable — The url that will send status updates for the cXML Script
    - `status_callback_method` 'GET' | 'POST' — The method type to use for the URL

## Other responses

- `401` — Access is unauthorized.
- `404` — The server cannot find the requested resource.
- `500` — An internal server error occurred.

---

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