CompTeam Athlete Goal Agent API

The Athlete Goal Agent API from CompTeam — 4 operation(s) for athlete goal agent.

GitHub OpenAPI

Operations 6

POST /api/v1/athlete-goals/nutrition/adjust Adjust Nutrition #
POST /api/v1/athlete-goals/chat Chat #
POST /api/v1/athlete-goals/draft Draft #
GET /api/v1/athlete-goals/me Get My Plan #
PUT /api/v1/athlete-goals/me Save My Plan #
DELETE /api/v1/athlete-goals/me Delete My Plan #

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/compteam-io:compteam-io-athlete-goal-agent-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

compteam-io-athlete-goal-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compteam Io Athlete Goal Agent API
  version: 0.1.0
  description: 'Operations tagged Athlete Goal Agent across 2 of this provider''s published API definitions: compteam-io-openapi.json, compteam-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.compteam.io
  description: C-TEAM API host serving this spec and its Swagger UI at /docs
tags:
- name: Athlete Goal Agent
paths:
  /api/v1/athlete-goals/nutrition/adjust:
    post:
      tags:
      - Athlete Goal Agent
      summary: Adjust Nutrition
      operationId: adjust_nutrition_api_v1_athlete_goals_nutrition_adjust_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NutritionAdjustmentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NutritionAdjustmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/athlete-goals/chat:
    post:
      tags:
      - Athlete Goal Agent
      summary: Chat
      operationId: chat_api_v1_athlete_goals_chat_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Language
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app__api__v1__endpoints__athlete_goals__ChatRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/athlete-goals/draft:
    post:
      tags:
      - Athlete Goal Agent
      summary: Draft
      operationId: draft_api_v1_athlete_goals_draft_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Language
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app__api__v1__endpoints__athlete_goals__ChatRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/athlete-goals/me:
    get:
      tags:
      - Athlete Goal Agent
      summary: Get My Plan
      operationId: get_my_plan_api_v1_athlete_goals_me_get
      security:
      - HTTPBearer: []
      parameters:
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Start
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Athlete Goal Agent
      summary: Save My Plan
      operationId: save_my_plan_api_v1_athlete_goals_me_put
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoalPlanSave'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Athlete Goal Agent
      summary: Delete My Plan
      operationId: delete_my_plan_api_v1_athlete_goals_me_delete
      security:
      - HTTPBearer: []
      responses:
        '204':
          description: Successful Response
components:
  schemas:
    NutritionAdjustmentDayContext:
      properties:
        local_date:
          type: string
          title: Local Date
        weekday:
          type: string
          title: Weekday
        timezone:
          type: string
          title: Timezone
        guidance_mode:
          type: string
          enum:
          - rest_day
          - training_day
          title: Guidance Mode
          description: Guidance inferred from dated training evidence; an explicit situation update may correct actual activity.
        confirmed_completed_sessions:
          type: integer
          title: Confirmed Completed Sessions
      type: object
      required:
      - local_date
      - weekday
      - timezone
      - guidance_mode
      - confirmed_completed_sessions
      title: NutritionAdjustmentDayContext
    app__api__v1__endpoints__athlete_goals__ChatRequest:
      properties:
        messages:
          items:
            $ref: '#/components/schemas/app__api__v1__endpoints__athlete_goals__ChatMessage'
          type: array
          maxItems: 30
          minItems: 1
          title: Messages
      type: object
      required:
      - messages
      title: ChatRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GoalPlanItem:
      properties:
        activity_title:
          type: string
          maxLength: 120
          minLength: 1
          title: Activity Title
        activity_type:
          type: string
          maxLength: 60
          minLength: 1
          title: Activity Type
        day_of_week:
          type: integer
          maximum: 6.0
          minimum: 0.0
          title: Day Of Week
        start_time:
          anyOf:
          - type: string
            pattern: ^\d{2}:\d{2}$
          - type: 'null'
          title: Start Time
        time_block:
          anyOf:
          - type: string
            enum:
            - morning
            - lunch
            - afternoon
            - evening
            - weekend
          - type: 'null'
          title: Time Block
        duration_min:
          type: integer
          maximum: 480.0
          minimum: 5.0
          title: Duration Min
        intensity:
          anyOf:
          - type: string
            enum:
            - light
            - moderate
            - hard
          - type: 'null'
          title: Intensity
        notes:
          type: string
          maxLength: 4000
          title: Notes
          default: ''
      type: object
      required:
      - activity_title
      - activity_type
      - day_of_week
      - duration_min
      title: GoalPlanItem
    GoalPlanSave:
      properties:
        goal_summary:
          type: string
          maxLength: 1000
          minLength: 1
          title: Goal Summary
        nutrition_notes:
          type: string
          maxLength: 12000
          title: Nutrition Notes
          default: ''
        items:
          items:
            $ref: '#/components/schemas/GoalPlanItem'
          type: array
          maxItems: 28
          minItems: 1
          title: Items
      type: object
      required:
      - goal_summary
      - items
      title: GoalPlanSave
    NutritionAdjustmentResponse:
      properties:
        nutrition_notes:
          type: string
          title: Nutrition Notes
        generated_at:
          type: string
          title: Generated At
        timezone:
          type: string
          title: Timezone
        local_date:
          type: string
          title: Local Date
        weight:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Weight
        sessions:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Sessions
        day_context:
          $ref: '#/components/schemas/NutritionAdjustmentDayContext'
      type: object
      required:
      - nutrition_notes
      - generated_at
      - timezone
      - local_date
      - weight
      - sessions
      - day_context
      title: NutritionAdjustmentResponse
    app__api__v1__endpoints__athlete_goals__ChatMessage:
      properties:
        role:
          type: string
          enum:
          - user
          - assistant
          title: Role
        content:
          type: string
          maxLength: 8000
          minLength: 1
          title: Content
      type: object
      required:
      - role
      - content
      title: ChatMessage
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    NutritionAdjustmentRequest:
      properties:
        timezone:
          type: string
          maxLength: 100
          minLength: 1
          title: Timezone
        language:
          type: string
          enum:
          - en
          - de
          - es
          - fr
          - pl
          title: Language
          default: en
        weight_unit:
          type: string
          enum:
          - kg
          - lbs
          title: Weight Unit
          default: kg
        situation:
          type: string
          maxLength: 2000
          title: Situation
          default: ''
      type: object
      required:
      - timezone
      title: NutritionAdjustmentRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- compteam-io-openapi.json
- compteam-io-openapi.yml