# List imported workspace variables

Source: https://www.jawsdeploy.net/rest-api/project-workspace-variables-list | Section: Project Variables

List workspace-level variables currently imported into a project.

`GET /api/project/workspace-variables`

Returns every workspace variable that the project currently imports, including the bound `workspaceVariableId` and the local `projectVariableId`.

## 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/workspace-variables?projectId=prj_abc123
```

Example response:

```
{ "projectId": "prj_abc123", "workspaceVariables": [ { "projectVariableId": "...", "workspaceVariableId": "...", "name": "ConnectionString", "variableType": "Text" } ] }
```

