TrainingPeaks Events API

Athlete events.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/events/next Get the athlete's next upcoming event · Get next event #
Ask an LLM
“What is the athlete's next upcoming event?”
“When is the next event on the athlete's schedule?”
Tell an agent
Get the athlete's next upcoming event.
Show the next event on the athlete's schedule.
GET /v2/events/{date} Get the athlete's events for a date · Get events by date #
Ask an LLM
“What events are scheduled for a given date?”
“Can I see all of the athlete's events on one day?”
Tell an agent
Get the athlete's events for {date}.
Show every event scheduled on {date}.
POST /v2/events Create an event for the athlete · Create event #
Ask an LLM
“How do I add a new event to the athlete's schedule?”
“Can I set the priority and type when creating an event?”
Tell an agent
Create an event named {Name} for athlete {AthleteId} on {Date}.
Add a {Type} event with priority {Priority} for {AthleteId} on {Date}.

Documentation

📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Athlete-Get-Profile
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/API-Endpoints
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Workouts-Get
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Workouts-Get-Details
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Workouts-Get-Mean-Max-Data
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Workout-Of-The-Day-Get
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Workout-Of-The-Day-Structured-Workout-File
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Metrics-Object
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/v2-Metrics-Get-By-Date-Range
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Athlete-Get-Nutrition
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Athlete-Post-Nutrition
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Coach-Get-Profile
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Coach-Get-Athletes
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/File-Upload
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/File-Upload-Asynchronous
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Event-Object
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Routes-Object
📖
Documentation
https://github.com/TrainingPeaks/PartnersAPI/wiki/Webhook-Create-Subscription
📖
APIReference
https://github.com/TrainingPeaks/PartnersAPI/wiki/Webhook-Get-Subscriptions

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trainingpeaks:trainingpeaks-events-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trainingpeaks-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TrainingPeaks Partners Events API
  version: '2.0'
  description: The TrainingPeaks Partners API (Public API) lets approved third-party applications read and write TrainingPeaks data on behalf of a user - athlete profiles, planned and completed workouts, structured workout files, wellness metrics, nutrition, events, routes, coach relationships, activity file uploads, and workout webhooks.
  contact:
    name: TrainingPeaks API Partnerships Team
    url: https://api.trainingpeaks.com/request-access
  x-access-model: partner-gated (application required; not available for personal use)
  x-endpoints-confirmed: true
  x-schemas-modeled: true
  x-documentation: https://github.com/TrainingPeaks/PartnersAPI/wiki
servers:
- url: https://api.trainingpeaks.com
  description: Production
- url: https://api.sandbox.trainingpeaks.com
  description: Sandbox (UAT; database refreshed weekly from production)
security:
- OAuth2: []
tags:
- name: Events
  description: Athlete events.
paths:
  /v2/events/next:
    get:
      tags:
      - Events
      summary: Get next event
      description: Retrieve the athlete's next upcoming event. Scope events:read.
      operationId: getNextEvent
      responses:
        '200':
          description: The next event.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v2/events/{date}:
    get:
      tags:
      - Events
      summary: Get events by date
      description: Retrieve the athlete's events for a date. Scope events:read.
      operationId: getEventsByDate
      parameters:
      - name: date
        in: path
        required: true
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Events on the date.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Event'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v2/events:
    post:
      tags:
      - Events
      summary: Create event
      description: Create a new event for the athlete. Scope events:write.
      operationId: createEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
      responses:
        '201':
          description: The created event.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: One or more required fields are missing or incorrect.
    Unauthorized:
      description: Bad, expired, or missing authorization header.
  schemas:
    Event:
      type: object
      description: Athlete event. Modeled from Event-Object wiki page.
      properties:
        Id:
          type: integer
          format: int64
        AthleteId:
          type: integer
          format: int64
        Name:
          type: string
        Date:
          type: string
          format: date
        Priority:
          type: string
          description: e.g. A
          B: null
          C priority race.: null
        Type:
          type: string
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 authorization code flow. Tokens are short-lived (expires_in seconds) and refreshed with the refresh_token grant. Scopes are not inclusive (e.g. workouts:details does not include workouts:read) and are limited to those granted to your application.
      flows:
        authorizationCode:
          authorizationUrl: https://oauth.trainingpeaks.com/OAuth/Authorize
          tokenUrl: https://oauth.trainingpeaks.com/oauth/token
          refreshUrl: https://oauth.trainingpeaks.com/oauth/token
          scopes:
            athlete:profile: Read the authenticated athlete's profile and zones.
            coach:athletes: Read coach profile, athletes, and assistants.
            workouts:read: Read planned and completed workouts and analytics.
            workouts:plan: Create, update, and delete planned workouts.
            workouts:wod: Read Workout of the Day and structured workout files.
            workouts:details: Read workout detail samples and post comments.
            metrics:read: Read athlete metrics.
            metrics:write: Create athlete metrics.
            nutrition:read: Read athlete nutrition entries.
            nutrition:write: Create, update, and delete nutrition entries.
            events:read: Read athlete events.
            events:write: Create athlete events.
            routes:read: Read athlete routes.
            routes:write: Create athlete routes.
            file:write: Upload activity files.
            webhook:read-subscriptions: List webhook subscriptions.
            webhook:write-subscriptions: Create, update, and delete webhook subscriptions.