## List

**get** `/projects/{projectId}/tasks`

List the tasks of the project's task source for the current user, to send one in the X-Scenario-Task-Id header. Returns 502 when the task source fails. Enterprise only.

### Path Parameters

- `projectId: string`

### Returns

- `tasks: array of object { id, name, status }`

  The tasks of the task source, at most 1,000. Entries without a valid id
  are skipped, and a repeated id keeps its first entry.

  - `id: string`

    The task id, to send in the X-Scenario-Task-Id header

  - `name: optional string`

    The task name

  - `status: optional string`

    The task status

### Example

```http
curl https://api.cloud.scenario.com/v1/projects/$PROJECT_ID/tasks \
    -u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET"
```

#### Response

```json
{
  "tasks": [
    {
      "id": "id",
      "name": "name",
      "status": "status"
    }
  ]
}
```
