# List script module assignments

Source: https://www.jawsdeploy.net/rest-api/projects-script-modules-list | Section: Projects

See which script modules are imported into a project.

`GET /api/project/script-modules`

Returns every workspace script module with an `imported` flag indicating whether the project currently imports it.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `projectId` | query | string | yes | ID of the project. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `projectId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
GET /api/project/script-modules?projectId=prj_abc123
```

Example response:

```
{ "projectId": "prj_abc123", "scriptModules": [ { "scriptModuleId": "...", "name": "...", "language": "powershell", "imported": true } ] }
```

