## Retrieve

**get** `/projects/{projectId}/task-source`

Get the project's task source: the endpoint that lists the tasks of the team's task tracker. The Authorization header value is never returned. Team admins only.

### Path Parameters

- `projectId: string`

### Returns

- `taskSource: object { hasAuthorization, mapping, method, 3 more }`

  A project's task source. The Authorization header value is never returned.

  - `hasAuthorization: boolean`

    Whether an Authorization header value is stored

  - `mapping: object { id, tasksPath, name, status }`

    Where the tasks sit in the response, and which fields to read

    - `id: string`

      Field of each task that holds its id (example: "code"). The id must be 1
      to 256 printable ASCII characters; a number is converted to a string.

    - `tasksPath: string`

      Dot-separated path to the array of tasks in the response (example:
      "data.items"). An empty string means the response is the array itself.

    - `name: optional string`

      Field of each task that holds its name (example: "title")

    - `status: optional string`

      Field of each task that holds its status (example: "state")

  - `method: "GET" or "POST"`

    HTTP method used to call the task source

    - `"GET"`

    - `"POST"`

  - `url: string`

    https URL of the task source

  - `body: optional string`

    JSON body sent with POST

  - `parameters: optional map[string]`

    Query string parameters sent to the task source

### Example

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

#### Response

```json
{
  "taskSource": {
    "hasAuthorization": true,
    "mapping": {
      "id": "x",
      "tasksPath": "tasksPath",
      "name": "x",
      "status": "x"
    },
    "method": "GET",
    "url": "url",
    "body": "body",
    "parameters": {
      "foo": "string"
    }
  }
}
```
