Mealie Admin: Maintenance API

The Admin: Maintenance API from Mealie — 5 operation(s) for admin: maintenance.

GitHub OpenAPI

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/admin/maintenance Get the maintenance summary · Get Maintenance Summary #
Ask an LLM
“What maintenance tasks are pending in Mealie?”
“Can I see a summary of maintenance checks?”
Tell an agent
Show the maintenance summary.
Get the maintenance status overview.
GET /api/admin/maintenance/storage Get storage usage details · Get Storage Details #
Ask an LLM
“How much storage is used and available?”
“What does the storage usage summary show?”
Tell an agent
Show storage usage details.
Get the storage summary.
POST /api/admin/maintenance/clean/images Purge non-webp images from storage · Clean Images #
Ask an LLM
“Can I remove all images that aren't webp files?”
“How do I clean up old image files?”
Tell an agent destructive · confirm first
Clean all images that are not webp.
Purge non-webp image files from storage.
POST /api/admin/maintenance/clean/temp Clean the temporary file directory · Clean Temp #
Ask an LLM
“How do I clear the temp directory?”
“Can I remove temporary files?”
Tell an agent destructive · confirm first
Clean the temporary file directory.
Clear all temp files.
POST /api/admin/maintenance/clean/recipe-folders Delete recipe folders with invalid names · Clean Recipe Folders #
Ask an LLM
“How do I remove recipe folders that aren't valid UUIDs?”
“Can I clean up orphaned recipe folders?”
Tell an agent destructive · confirm first
Delete recipe folders that don't have valid UUID names.
Clean up recipe folders with invalid folder names.

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/mealie:mealie-admin-maintenance-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

mealie-admin-maintenance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Mealie Admin: Maintenance API'
  description: Mealie is a web application for managing your recipes, meal plans, and shopping lists.
  version: nightly
tags:
- name: Admin - Maintenance
paths:
  /api/admin/maintenance:
    get:
      tags:
      - Admin - Maintenance
      summary: Get Maintenance Summary
      description: Get the maintenance summary
      operationId: get_maintenance_summary_api_admin_maintenance_get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MaintenanceSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/maintenance/storage:
    get:
      tags:
      - Admin - Maintenance
      summary: Get Storage Details
      operationId: get_storage_details_api_admin_maintenance_storage_get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MaintenanceStorageDetails'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/maintenance/clean/images:
    post:
      tags:
      - Admin - Maintenance
      summary: Clean Images
      description: Purges all the images from the filesystem that aren't .webp
      operationId: clean_images_api_admin_maintenance_clean_images_post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/maintenance/clean/temp:
    post:
      tags:
      - Admin - Maintenance
      summary: Clean Temp
      operationId: clean_temp_api_admin_maintenance_clean_temp_post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/maintenance/clean/recipe-folders:
    post:
      tags:
      - Admin - Maintenance
      summary: Clean Recipe Folders
      description: Deletes all the recipe folders that don't have names that are valid UUIDs
      operationId: clean_recipe_folders_api_admin_maintenance_clean_recipe_folders_post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MaintenanceStorageDetails:
      properties:
        tempDirSize:
          type: string
          title: Tempdirsize
        backupsDirSize:
          type: string
          title: Backupsdirsize
        groupsDirSize:
          type: string
          title: Groupsdirsize
        recipesDirSize:
          type: string
          title: Recipesdirsize
        userDirSize:
          type: string
          title: Userdirsize
      type: object
      required:
      - tempDirSize
      - backupsDirSize
      - groupsDirSize
      - recipesDirSize
      - userDirSize
      title: MaintenanceStorageDetails
    MaintenanceSummary:
      properties:
        dataDirSize:
          type: string
          title: Datadirsize
        cleanableImages:
          type: integer
          title: Cleanableimages
        cleanableDirs:
          type: integer
          title: Cleanabledirs
      type: object
      required:
      - dataDirSize
      - cleanableImages
      - cleanableDirs
      title: MaintenanceSummary
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SuccessResponse:
      properties:
        message:
          type: string
          title: Message
        error:
          type: boolean
          title: Error
          default: false
      type: object
      required:
      - message
      title: SuccessResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/auth/token
x-provenance:
  method: harvested
  publisher: Mealie
  source: https://demo.mealie.io/openapi.json
  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)