Wger Workoutlog API

The workoutlog API from Wger — 2 operation(s) for workoutlog.

Operations 6

GET /api/v2/workoutlog/ Workoutlog list #
POST /api/v2/workoutlog/ Workoutlog create #
GET /api/v2/workoutlog/{id}/ Workoutlog retrieve #
PUT /api/v2/workoutlog/{id}/ Workoutlog update #
PATCH /api/v2/workoutlog/{id}/ Workoutlog partial update #
DELETE /api/v2/workoutlog/{id}/ Workoutlog destroy #

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/wger-workoutlog-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

wger-workoutlog-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: wger Workoutlog API
  version: 2.7.0a2
  description: Self hosted FLOSS workout and fitness tracker.
  license:
    name: AGPL-3.0-or-later
    url: https://www.gnu.org/licenses/agpl-3.0.html
servers:
- url: /
  description: This server
- url: https://wger.de
  description: The "official" upstream wger instance
tags:
- name: workoutlog
paths:
  /api/v2/workoutlog/:
    get:
      operationId: workoutlog_list
      description: API endpoint for workout log objects
      parameters:
      - in: query
        name: date
        schema:
          type: string
          format: date-time
      - in: query
        name: date__date
        schema:
          type: string
          format: date
      - in: query
        name: date__gt
        schema:
          type: string
          format: date-time
      - in: query
        name: date__gte
        schema:
          type: string
          format: date-time
      - in: query
        name: date__lt
        schema:
          type: string
          format: date-time
      - in: query
        name: date__lte
        schema:
          type: string
          format: date-time
      - in: query
        name: exercise
        schema:
          type: integer
      - in: query
        name: exercise__in
        schema:
          type: array
          items:
            type: integer
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      - in: query
        name: iteration
        schema:
          type: integer
      - in: query
        name: iteration__in
        schema:
          type: array
          items:
            type: integer
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - name: ordering
        required: false
        in: query
        description: Which field to use when ordering the results.
        schema:
          type: string
      - in: query
        name: repetitions
        schema:
          type: number
      - in: query
        name: repetitions__gt
        schema:
          type: number
      - in: query
        name: repetitions__gte
        schema:
          type: number
      - in: query
        name: repetitions__lt
        schema:
          type: number
      - in: query
        name: repetitions__lte
        schema:
          type: number
      - in: query
        name: repetitions_target
        schema:
          type: number
      - in: query
        name: repetitions_target__gt
        schema:
          type: number
      - in: query
        name: repetitions_target__gte
        schema:
          type: number
      - in: query
        name: repetitions_target__lt
        schema:
          type: number
      - in: query
        name: repetitions_target__lte
        schema:
          type: number
      - in: query
        name: repetitions_unit
        schema:
          type: integer
      - in: query
        name: repetitions_unit__in
        schema:
          type: array
          items:
            type: integer
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      - in: query
        name: rir
        schema:
          type: number
      - in: query
        name: rir__gt
        schema:
          type: number
      - in: query
        name: rir__gte
        schema:
          type: number
      - in: query
        name: rir__in
        schema:
          type: array
          items:
            type: number
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      - in: query
        name: rir__lt
        schema:
          type: number
      - in: query
        name: rir__lte
        schema:
          type: number
      - in: query
        name: rir_target
        schema:
          type: number
      - in: query
        name: rir_target__gt
        schema:
          type: number
      - in: query
        name: rir_target__gte
        schema:
          type: number
      - in: query
        name: rir_target__in
        schema:
          type: array
          items:
            type: number
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      - in: query
        name: rir_target__lt
        schema:
          type: number
      - in: query
        name: rir_target__lte
        schema:
          type: number
      - in: query
        name: routine
        schema:
          type: integer
      - in: query
        name: session
        schema:
          type: string
          format: uuid
      - in: query
        name: weight
        schema:
          type: number
      - in: query
        name: weight__gt
        schema:
          type: number
      - in: query
        name: weight__gte
        schema:
          type: number
      - in: query
        name: weight__lt
        schema:
          type: number
      - in: query
        name: weight__lte
        schema:
          type: number
      - in: query
        name: weight_target
        schema:
          type: number
      - in: query
        name: weight_target__gt
        schema:
          type: number
      - in: query
        name: weight_target__gte
        schema:
          type: number
      - in: query
        name: weight_target__lt
        schema:
          type: number
      - in: query
        name: weight_target__lte
        schema:
          type: number
      - in: query
        name: weight_unit
        schema:
          type: integer
      - in: query
        name: weight_unit__in
        schema:
          type: array
          items:
            type: integer
        description: Multiple values may be separated by commas.
        explode: false
        style: form
      tags:
      - workoutlog
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWorkoutLogList'
          description: ''
      summary: Workoutlog list
      x-summary-source: derived
    post:
      operationId: workoutlog_create
      description: API endpoint for workout log objects
      tags:
      - workoutlog
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkoutLogRequest'
        required: true
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkoutLog'
          description: ''
      summary: Workoutlog create
      x-summary-source: derived
  /api/v2/workoutlog/{id}/:
    get:
      operationId: workoutlog_retrieve
      description: API endpoint for workout log objects
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this workout log.
        required: true
      tags:
      - workoutlog
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkoutLog'
          description: ''
      summary: Workoutlog retrieve
      x-summary-source: derived
    put:
      operationId: workoutlog_update
      description: API endpoint for workout log objects
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this workout log.
        required: true
      tags:
      - workoutlog
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkoutLogRequest'
        required: true
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkoutLog'
          description: ''
      summary: Workoutlog update
      x-summary-source: derived
    patch:
      operationId: workoutlog_partial_update
      description: API endpoint for workout log objects
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this workout log.
        required: true
      tags:
      - workoutlog
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedWorkoutLogRequest'
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkoutLog'
          description: ''
      summary: Workoutlog partial update
      x-summary-source: derived
    delete:
      operationId: workoutlog_destroy
      description: API endpoint for workout log objects
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this workout log.
        required: true
      tags:
      - workoutlog
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '204':
          description: No response body
      summary: Workoutlog destroy
      x-summary-source: derived
components:
  schemas:
    PatchedWorkoutLogRequest:
      type: object
      description: Workout log serializer
      properties:
        id:
          type: string
          format: uuid
        date:
          type: string
          format: date-time
        session:
          type:
          - string
          - 'null'
          format: uuid
        routine:
          type:
          - integer
          - 'null'
          title: Workout
        iteration:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        slot_entry:
          type:
          - integer
          - 'null'
        next_log:
          type:
          - string
          - 'null'
          format: uuid
        exercise:
          type: integer
        repetitions_unit:
          type:
          - integer
          - 'null'
        repetitions:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        repetitions_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_unit:
          type:
          - integer
          - 'null'
        weight:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        rir:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rir_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rest:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        rest_target:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
    WorkoutLog:
      type: object
      description: Workout log serializer
      properties:
        id:
          type: string
          format: uuid
        date:
          type: string
          format: date-time
        session:
          type:
          - string
          - 'null'
          format: uuid
        routine:
          type:
          - integer
          - 'null'
          title: Workout
        iteration:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        slot_entry:
          type:
          - integer
          - 'null'
        next_log:
          type:
          - string
          - 'null'
          format: uuid
        exercise:
          type: integer
        repetitions_unit:
          type:
          - integer
          - 'null'
        repetitions:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        repetitions_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_unit:
          type:
          - integer
          - 'null'
        weight:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        rir:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rir_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rest:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        rest_target:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
      required:
      - exercise
    WorkoutLogRequest:
      type: object
      description: Workout log serializer
      properties:
        id:
          type: string
          format: uuid
        date:
          type: string
          format: date-time
        session:
          type:
          - string
          - 'null'
          format: uuid
        routine:
          type:
          - integer
          - 'null'
          title: Workout
        iteration:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        slot_entry:
          type:
          - integer
          - 'null'
        next_log:
          type:
          - string
          - 'null'
          format: uuid
        exercise:
          type: integer
        repetitions_unit:
          type:
          - integer
          - 'null'
        repetitions:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        repetitions_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_unit:
          type:
          - integer
          - 'null'
        weight:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        weight_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
        rir:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rir_target:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,1})?$
        rest:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
        rest_target:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: 0
      required:
      - exercise
    PaginatedWorkoutLogList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/WorkoutLog'
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
    headlessJwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token issued by the allauth headless endpoints
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oidcAuth:
      type: oauth2
      description: Access token issued by the OAuth2/OIDC provider
      flows:
        authorizationCode:
          authorizationUrl: https://wger.de/identity/o/authorize
          tokenUrl: https://wger.de/identity/o/api/token
          scopes:
            api:read: View your training, nutrition and body data
            api:write: Add and change your training, nutrition and body data
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"
externalDocs:
  url: https://wger.readthedocs.io
  description: wger documentation