Mealie Users: Authentication API

The Users: Authentication API from Mealie — 7 operation(s) for users: authentication.

Operations 7

POST /api/auth/token Get Token #
GET /api/auth/oauth Oauth Login #
GET /api/auth/oauth/callback Oauth Callback #
GET /api/auth/oauth/native/config Oauth Native Config #
POST /api/auth/oauth/native/token Oauth Native Token #
POST /api/auth/refresh Refresh Token #
POST /api/auth/logout Logout #

Documentation

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/mealie-users-authentication-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

mealie-users-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Mealie Users: Authentication API'
  description: Mealie is a web application for managing your recipes, meal plans, and shopping lists.
  version: nightly
tags:
- name: Users authentication
paths:
  /api/auth/token:
    post:
      tags:
      - Users authentication
      summary: Get Token
      operationId: get_token_api_auth_token_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_get_token_api_auth_token_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/auth/oauth:
    get:
      tags:
      - Users authentication
      summary: Oauth Login
      operationId: oauth_login_api_auth_oauth_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/auth/oauth/callback:
    get:
      tags:
      - Users authentication
      summary: Oauth Callback
      operationId: oauth_callback_api_auth_oauth_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/auth/oauth/native/config:
    get:
      tags:
      - Users authentication
      summary: Oauth Native Config
      description: Return the parameters a native client needs to build its own OIDC authorization request.
      operationId: oauth_native_config_api_auth_oauth_native_config_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCNativeConfig'
  /api/auth/oauth/native/token:
    post:
      tags:
      - Users authentication
      summary: Oauth Native Token
      description: 'Exchange a native client''s authorization code for a Mealie token.


        The native client owns PKCE and state, so the exchange happens server-side without a browser

        session cookie. This lets passkey-capable system-browser logins (e.g. Pocket ID) work, which

        the cookie-coupled web callback cannot support.'
      operationId: oauth_native_token_api_auth_oauth_native_token_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NativeOIDCTokenRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/auth/refresh:
    post:
      tags:
      - Users authentication
      summary: Refresh Token
      description: 'Exchange a valid session token for a fresh one.


        The new token carries over the remember-me choice recorded on the old one, so refreshing doesn''t

        downgrade a remembered session to one that dies with the browser.'
      operationId: refresh_token_api_auth_refresh_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - OAuth2PasswordBearer: []
  /api/auth/logout:
    post:
      tags:
      - Users authentication
      summary: Logout
      operationId: logout_api_auth_logout_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: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OIDCNativeConfig:
      properties:
        authorization_endpoint:
          type: string
          title: Authorization Endpoint
        client_id:
          type: string
          title: Client Id
        scope:
          type: string
          title: Scope
      type: object
      required:
      - authorization_endpoint
      - client_id
      - scope
      title: OIDCNativeConfig
      description: Parameters a native client needs to start an OIDC authorization request itself.
    Body_get_token_api_auth_token_post:
      properties:
        username:
          type: string
          title: Username
          default: ''
        password:
          type: string
          title: Password
          default: ''
        remember_me:
          type: boolean
          title: Remember Me
          default: false
      type: object
      title: Body_get_token_api_auth_token_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    NativeOIDCTokenRequest:
      properties:
        code:
          type: string
          title: Code
        code_verifier:
          type: string
          title: Code Verifier
        redirect_uri:
          type: string
          title: Redirect Uri
        nonce:
          anyOf:
          - type: string
          - type: 'null'
          title: Nonce
      type: object
      required:
      - code
      - code_verifier
      - redirect_uri
      title: NativeOIDCTokenRequest
      description: An authorization code captured by a native client, for server-side exchange.
    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
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/auth/token