Mealie Users: Tokens API

The Users: Tokens API from Mealie — 2 operation(s) for users: tokens.

Operations 2

POST /api/users/api-tokens Create Api Token #
DELETE /api/users/api-tokens/{token_id} Delete Api Token #

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-tokens-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-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Mealie Users: Tokens API'
  description: Mealie is a web application for managing your recipes, meal plans, and shopping lists.
  version: nightly
tags:
- name: 'Users: Tokens'
paths:
  /api/users/api-tokens:
    post:
      tags:
      - 'Users: Tokens'
      summary: Create Api Token
      description: Create api_token in the Database
      operationId: create_api_token_api_users_api_tokens_post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LongLiveTokenIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LongLiveTokenCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/users/api-tokens/{token_id}:
    delete:
      tags:
      - 'Users: Tokens'
      summary: Delete Api Token
      description: Delete api_token from the Database
      operationId: delete_api_token_api_users_api_tokens__token_id__delete
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: integer
          title: Token Id
      - 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/DeleteTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeleteTokenResponse:
      properties:
        tokenDelete:
          type: string
          title: Tokendelete
      type: object
      required:
      - tokenDelete
      title: DeleteTokenResponse
    LongLiveTokenCreateResponse:
      properties:
        name:
          type: string
          title: Name
        id:
          type: integer
          title: Id
        createdAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Createdat
        token:
          type: string
          title: Token
      type: object
      required:
      - name
      - id
      - token
      title: LongLiveTokenCreateResponse
      description: Should ONLY be used when creating a new token, as the token field is sensitive
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LongLiveTokenIn:
      properties:
        name:
          type: string
          title: Name
        integrationId:
          type: string
          title: Integrationid
          default: generic
      type: object
      required:
      - name
      title: LongLiveTokenIn
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/auth/token