# List script modules

Source: https://www.jawsdeploy.net/rest-api/script-modules-list | Section: Script Modules

List the script modules in a workspace.

`GET /api/script-module`

Returns the workspace's script modules: name, description, and script language.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `workspaceId` | query | string | yes | ID of the workspace. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `workspaceId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
GET /api/script-module?workspaceId=ws_abc
```

Example response:

```
{ "workspaceId": "ws_abc", "scriptModules": [ { "scriptModuleId": "sm_1", "name": "AuthHelpers", "scriptLanguage": "powershell" } ] }
```

