Wger User Profile API

The User Profile API from Wger — 2 operation(s) for user profile.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

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 /api/v2/userprofile/ Get my user profile · Userprofile retrieve #
Ask an LLM
“How do I see my own user profile?”
“What personal details are stored in my profile?”
Tell an agent
Show my user profile.
Fetch the profile of the logged-in user.
POST /api/v2/userprofile/ Update my profile with a POST (wger 2.6 and older) · Update the profile of servers up to wger 2.6 #
Ask an LLM
“How do I update my profile on a wger server that still accepts only POST?”
“Does the older wger 2.6 server accept a full profile update as a POST?”
Tell an agent
Update my profile using the legacy POST endpoint.
Send a full profile update to wger 2.6 as a POST.
PUT /api/v2/userprofile/ Replace my user profile · Userprofile update #
Ask an LLM
“How do I overwrite my profile with a full update?”
“Can I set my age and gender in one full profile update?”
Tell an agent
Replace my user profile with age {age}, gender {gender} and height {height}.
Overwrite my profile with weight unit {weight_unit} and sleep hours {sleep_hours}.
PATCH /api/v2/userprofile/ Change fields of my user profile · Userprofile partial update #
Ask an LLM
“How do I change just my workout reminder settings?”
“Can I round repetitions to the nearest whole number?”
Tell an agent
Set my workout reminder to {workout_reminder} days.
Round repetitions to {repetitions_rounding} and weight to {weight_rounding}.
POST /api/v2/userprofile/verify-email/ Send a profile email verification · Userprofile verify email create #
Ask an LLM
“How do I confirm my email address for my profile?”
“Can I resend the profile email verification?”
Tell an agent
Send an email verification for my profile.
Resend the profile email verification.

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:wger-user-profile-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

wger-user-profile-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: wger Userprofile 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: User Profile
paths:
  /api/v2/userprofile/:
    get:
      operationId: userprofile_retrieve
      description: 'API endpoint for the user profile


        Every user has exactly one profile, so this endpoint has no list and no

        detail route: it always reads and writes the profile of the logged-in user.

        Updating it takes a PATCH since wger 2.7; up to 2.6 it took a POST.'
      tags:
      - User Profile
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Userprofile'
          description: ''
      summary: Userprofile retrieve
      x-summary-source: derived
    post:
      operationId: userprofile_update_legacy
      description: 'Updates the profile of the logged-in user, exactly like PATCH does.


        Use this if your client needs to work with wger 2.6 or older, which accept only POST on this endpoint. Servers from 2.7 on accept both, so prefer PATCH in this case.'
      summary: Update the profile of servers up to wger 2.6
      tags:
      - User Profile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserprofileRequest'
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Userprofile'
          description: ''
    put:
      operationId: userprofile_update
      description: 'API endpoint for the user profile


        Every user has exactly one profile, so this endpoint has no list and no

        detail route: it always reads and writes the profile of the logged-in user.

        Updating it takes a PATCH since wger 2.7; up to 2.6 it took a POST.'
      tags:
      - User Profile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserprofileRequest'
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Userprofile'
          description: ''
      summary: Userprofile update
      x-summary-source: derived
    patch:
      operationId: userprofile_partial_update
      description: 'API endpoint for the user profile


        Every user has exactly one profile, so this endpoint has no list and no

        detail route: it always reads and writes the profile of the logged-in user.

        Updating it takes a PATCH since wger 2.7; up to 2.6 it took a POST.'
      tags:
      - User Profile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedUserprofileRequest'
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Userprofile'
          description: ''
      summary: Userprofile partial update
      x-summary-source: derived
  /api/v2/userprofile/verify-email/:
    post:
      operationId: userprofile_verify_email_create
      description: 'Verify the user''s email address


        POST only, a GET must not send out emails as a side effect'
      tags:
      - User Profile
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyEmailResponse'
          description: ''
      summary: Userprofile verify email create
      x-summary-source: derived
components:
  schemas:
    IntensityEnum:
      enum:
      - '1'
      - '2'
      - '3'
      type: string
      description: '* `1` - Low

        * `2` - Medium

        * `3` - High'
    PatchedUserprofileRequest:
      type: object
      description: Workout session serializer
      properties:
        weight_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        repetitions_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        workout_reminder_active:
          type: boolean
          title: Activate workout reminders
          description: Check to activate automatic reminders for workouts. You need to provide a valid email for this to work.
        workout_reminder:
          type: integer
          maximum: 30
          minimum: 1
          title: Remind before expiration
          description: The number of days you want to be reminded before a workout expires.
        workout_duration:
          type: integer
          maximum: 30
          minimum: 1
          title: Default duration of workouts
          description: Default duration in weeks of workouts not in a schedule. Used for email workout reminders.
        notification_language:
          type: integer
          description: Language to use when sending you email notifications, e.g. email reminders for workouts. This does not affect the language used on the website.
        age:
          type:
          - integer
          - 'null'
          maximum: 100
          minimum: 10
        birthdate:
          type:
          - string
          - 'null'
          format: date
          title: Date of Birth
        height:
          type:
          - integer
          - 'null'
          maximum: 230
          minimum: 140
          title: Height (cm)
        gender:
          oneOf:
          - $ref: '#/components/schemas/GenderEnum'
          - $ref: '#/components/schemas/NullEnum'
        sleep_hours:
          type:
          - integer
          - 'null'
          maximum: 10
          minimum: 4
          title: Hours of sleep
          description: The average hours of sleep per day
        work_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Work
          description: Average hours per day
        work_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        sport_hours:
          type:
          - integer
          - 'null'
          maximum: 30
          minimum: 1
          title: Sport
          description: Average hours per week
        sport_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        freetime_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Free time
          description: Average hours per day
        freetime_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        calories:
          type:
          - integer
          - 'null'
          maximum: 5000
          minimum: 1500
          title: Total daily calories
          description: Total caloric intake, including e.g. any surplus
        weight_unit:
          $ref: '#/components/schemas/WeightUnitEnum'
        num_days_weight_reminder:
          type: integer
          maximum: 30
          minimum: 0
          title: Automatic reminders for weight entries
          description: Number of days after the last weight entry (enter 0 to deactivate)
    Userprofile:
      type: object
      description: Workout session serializer
      properties:
        username:
          type: string
          readOnly: true
        email:
          type: string
          format: email
          readOnly: true
        email_verified:
          type: boolean
          readOnly: true
        is_trustworthy:
          type: boolean
          readOnly: true
        date_joined:
          type: string
          format: date-time
          readOnly: true
        gym:
          type:
          - integer
          - 'null'
          readOnly: true
        weight_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        repetitions_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        is_temporary:
          type: boolean
          readOnly: true
        workout_reminder_active:
          type: boolean
          title: Activate workout reminders
          description: Check to activate automatic reminders for workouts. You need to provide a valid email for this to work.
        workout_reminder:
          type: integer
          maximum: 30
          minimum: 1
          title: Remind before expiration
          description: The number of days you want to be reminded before a workout expires.
        workout_duration:
          type: integer
          maximum: 30
          minimum: 1
          title: Default duration of workouts
          description: Default duration in weeks of workouts not in a schedule. Used for email workout reminders.
        last_workout_notification:
          type:
          - string
          - 'null'
          format: date
          readOnly: true
        notification_language:
          type: integer
          description: Language to use when sending you email notifications, e.g. email reminders for workouts. This does not affect the language used on the website.
        age:
          type:
          - integer
          - 'null'
          maximum: 100
          minimum: 10
        birthdate:
          type:
          - string
          - 'null'
          format: date
          title: Date of Birth
        height:
          type:
          - integer
          - 'null'
          maximum: 230
          minimum: 140
          title: Height (cm)
        gender:
          oneOf:
          - $ref: '#/components/schemas/GenderEnum'
          - $ref: '#/components/schemas/NullEnum'
        sleep_hours:
          type:
          - integer
          - 'null'
          maximum: 10
          minimum: 4
          title: Hours of sleep
          description: The average hours of sleep per day
        work_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Work
          description: Average hours per day
        work_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        sport_hours:
          type:
          - integer
          - 'null'
          maximum: 30
          minimum: 1
          title: Sport
          description: Average hours per week
        sport_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        freetime_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Free time
          description: Average hours per day
        freetime_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        calories:
          type:
          - integer
          - 'null'
          maximum: 5000
          minimum: 1500
          title: Total daily calories
          description: Total caloric intake, including e.g. any surplus
        weight_unit:
          $ref: '#/components/schemas/WeightUnitEnum'
        num_days_weight_reminder:
          type: integer
          maximum: 30
          minimum: 0
          title: Automatic reminders for weight entries
          description: Number of days after the last weight entry (enter 0 to deactivate)
      required:
      - date_joined
      - email
      - email_verified
      - gym
      - is_temporary
      - is_trustworthy
      - last_workout_notification
      - username
    VerifyEmailResponse:
      type: object
      properties:
        status:
          type: string
        result:
          type: string
        message:
          type: string
      required:
      - message
    GenderEnum:
      enum:
      - '1'
      - '2'
      type: string
      description: '* `1` - Male

        * `2` - Female'
    WeightUnitEnum:
      enum:
      - kg
      - lb
      type: string
      description: '* `kg` - Metric (kilogram)

        * `lb` - Imperial (pound)'
    UserprofileRequest:
      type: object
      description: Workout session serializer
      properties:
        weight_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        repetitions_rounding:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,2}(?:\.\d{0,2})?$
        workout_reminder_active:
          type: boolean
          title: Activate workout reminders
          description: Check to activate automatic reminders for workouts. You need to provide a valid email for this to work.
        workout_reminder:
          type: integer
          maximum: 30
          minimum: 1
          title: Remind before expiration
          description: The number of days you want to be reminded before a workout expires.
        workout_duration:
          type: integer
          maximum: 30
          minimum: 1
          title: Default duration of workouts
          description: Default duration in weeks of workouts not in a schedule. Used for email workout reminders.
        notification_language:
          type: integer
          description: Language to use when sending you email notifications, e.g. email reminders for workouts. This does not affect the language used on the website.
        age:
          type:
          - integer
          - 'null'
          maximum: 100
          minimum: 10
        birthdate:
          type:
          - string
          - 'null'
          format: date
          title: Date of Birth
        height:
          type:
          - integer
          - 'null'
          maximum: 230
          minimum: 140
          title: Height (cm)
        gender:
          oneOf:
          - $ref: '#/components/schemas/GenderEnum'
          - $ref: '#/components/schemas/NullEnum'
        sleep_hours:
          type:
          - integer
          - 'null'
          maximum: 10
          minimum: 4
          title: Hours of sleep
          description: The average hours of sleep per day
        work_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Work
          description: Average hours per day
        work_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        sport_hours:
          type:
          - integer
          - 'null'
          maximum: 30
          minimum: 1
          title: Sport
          description: Average hours per week
        sport_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        freetime_hours:
          type:
          - integer
          - 'null'
          maximum: 15
          minimum: 1
          title: Free time
          description: Average hours per day
        freetime_intensity:
          title: Physical intensity
          description: 'Approximately


            * `1` - Low

            * `2` - Medium

            * `3` - High'
          oneOf:
          - $ref: '#/components/schemas/IntensityEnum'
          - $ref: '#/components/schemas/NullEnum'
        calories:
          type:
          - integer
          - 'null'
          maximum: 5000
          minimum: 1500
          title: Total daily calories
          description: Total caloric intake, including e.g. any surplus
        weight_unit:
          $ref: '#/components/schemas/WeightUnitEnum'
        num_days_weight_reminder:
          type: integer
          maximum: 30
          minimum: 0
          title: Automatic reminders for weight entries
          description: Number of days after the last weight entry (enter 0 to deactivate)
    NullEnum:
      enum:
      - null
  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
x-provenance:
  method: harvested
  publisher: Wger
  source: https://wger.de/api/v2/schema
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)