# TrainingPeaks

> Read your TrainingPeaks athlete profile, zones, workouts and metrics.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/trainingpeaks

## Actions

### Get a workout

Read a workout by its ID.

**Inputs**

- Workout ID (`workout_id`, number, required): The numeric workout ID from List workouts. At least 1.

**Outputs**

- `data` (object): The response from TrainingPeaks.

**Example output**

```json
{
  "data": {
    "Distance": 1,
    "Id": 1,
    "LastModifiedDate": "example",
    "StartTime": "example",
    "Title": "example",
    "TotalTime": 1,
    "WorkoutDay": "example",
    "WorkoutType": "example"
  }
}
```

### Get training zones

Read the connected athlete’s configured training zones.

**Inputs**: None.

**Outputs**

- `data` (object): The response from TrainingPeaks.

**Example output**

```json
{
  "data": {}
}
```

### Get your athlete profile

Read the connected athlete’s profile and settings.

**Inputs**: None.

**Outputs**

- `data` (object): The response from TrainingPeaks.

**Example output**

```json
{
  "data": {}
}
```

### List athlete metrics

Read measurements such as body weight and resting heart rate over a date range.

**Inputs**

- Start date (`start_date`, date, required): The first TrainingPeaks calendar date.
- End date (`end_date`, date, required): The last TrainingPeaks calendar date.

**Outputs**

- `data` (list): The response from TrainingPeaks.

**Example output**

```json
{
  "data": [
    {}
  ]
}
```

### List changed workouts

Find workouts changed or deleted since a calendar date.

**Inputs**

- Since (`since`, date, required): Include changes since this UTC calendar date.
- Page (`page`, number): The page to return, starting at zero. At least 0.
- Limit (`limit`, number): The maximum number of changes per page. From 1 to 100.

**Outputs**

- `data` (object): The response from TrainingPeaks.

**Example output**

```json
{
  "data": {
    "Deleted": [
      1
    ],
    "Modified": [
      {
        "Distance": 1,
        "Id": 1,
        "LastModifiedDate": "example",
        "StartTime": "example",
        "Title": "example",
        "TotalTime": 1,
        "WorkoutDay": "example",
        "WorkoutType": "example"
      }
    ]
  }
}
```

### List workouts

Read the connected athlete’s workouts for a calendar date range.

**Inputs**

- Start date (`start_date`, date, required): The first TrainingPeaks calendar date.
- End date (`end_date`, date, required): The last TrainingPeaks calendar date.

**Outputs**

- `data` (list): The response from TrainingPeaks.

**Example output**

```json
{
  "data": [
    {
      "Distance": 1,
      "Id": 1,
      "LastModifiedDate": "example",
      "StartTime": "example",
      "Title": "example",
      "TotalTime": 1,
      "WorkoutDay": "example",
      "WorkoutType": "example"
    }
  ]
}
```
