listmonk Media API

The Media API from listmonk — 2 operation(s) for media.

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 6

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 /media List uploaded media files · Get media #
Ask an LLM
“Which media files have I uploaded to Listmonk?”
“Can I see all my uploaded media files?”
Tell an agent
List all my uploaded media files.
Show every media file I've uploaded.
POST /media Upload a media file · Upload media #
Ask an LLM
“How do I upload an image or video to Listmonk?”
“Can I attach a media file to a campaign?”
Tell an agent
Upload this media file to Listmonk.
Add a new image or video to my media library.
GET /media/{id} Get an uploaded media file · Get media by id #
Ask an LLM
“How do I fetch one uploaded media file by its ID?”
“Can I retrieve a media file I already uploaded?”
Tell an agent
Get uploaded media file {id}.
Show the details of media file {id}.
DELETE /media/{id} Delete an uploaded media file · Delete media by id #
Ask an LLM
“How do I delete a media file I uploaded?”
“Can I remove an image from my media library?”
Tell an agent destructive · confirm first
Delete uploaded media file {id}.
Remove media file {id} from my library.
GET /media/{media_id} Download an uploaded media file · Retrieve a specific media file #
Ask an LLM
“How do I download the actual file behind an uploaded media record?”
“Can I fetch the raw media file by its ID?”
Tell an agent
Download the media file {media_id}.
Fetch the raw file for uploaded media {media_id}.
DELETE /media/{media_id} Delete an uploaded media file · Delete an uploaded media file #
Ask an LLM
“How do I remove an image or file I uploaded to Listmonk?”
“Can I delete a media file by its ID?”
Tell an agent destructive · confirm first
Delete uploaded media {media_id}.
Remove the media file {media_id}.

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/listmonk:listmonk-media-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

listmonk-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Listmonk Media API
  version: '1.0'
  description: 'Operations tagged Media across 2 of this provider''s published API definitions: listmonk-collections-openapi.yml, listmonk-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Listmonk Developement Server
  url: http://localhost:9000/api
- url: '{host}/api'
  description: Self-hosted instance
  variables:
    host:
      default: http://localhost:9000
      description: Base URL of your listmonk instance
tags:
- name: Media
  description: Media API
  externalDocs:
    url: https://listmonk.app/docs/apis/media/
paths:
  /media:
    get:
      description: handles retrieval of uploaded media.
      operationId: getMedia
      tags:
      - Media
      responses:
        '200':
          description: response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/MediaFileObject'
      summary: Get media
      x-summary-source: derived
    post:
      description: handles media file uploads.
      operationId: uploadMedia
      tags:
      - Media
      requestBody:
        description: upload media file
        content:
          multipart/form-data:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MediaFileObject'
      summary: Upload media
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /media/{id}:
    get:
      description: handles retrieval of uploaded media.
      operationId: getMediaById
      tags:
      - Media
      parameters:
      - in: path
        name: id
        required: true
        description: media file id
        schema:
          type: integer
      responses:
        '200':
          description: response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MediaFileObject'
      summary: Get media by id
      x-summary-source: derived
    delete:
      description: handles deletion of uploaded media.
      operationId: deleteMediaById
      tags:
      - Media
      parameters:
      - in: path
        name: id
        required: true
        description: The id value of the list you want to delete.
        schema:
          type: integer
      responses:
        '200':
          description: response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Delete media by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /media/{media_id}:
    parameters:
    - name: media_id
      in: path
      required: true
      schema:
        type: integer
    get:
      operationId: getMediaFile
      tags:
      - Media
      summary: Retrieve a specific media file
      responses:
        '200':
          description: The media file.
      security:
      - BasicAuth: []
      - TokenAuth: []
    delete:
      operationId: deleteMedia
      tags:
      - Media
      summary: Delete an uploaded media file
      responses:
        '200':
          description: Deletion result.
      security:
      - BasicAuth: []
      - TokenAuth: []
    servers:
    - url: http://localhost:9000/api
      description: Default local self-hosted instance
    - url: '{host}/api'
      description: Self-hosted instance
      variables:
        host:
          default: http://localhost:9000
          description: Base URL of your listmonk instance
components:
  schemas:
    MediaFileObject:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        filename:
          type: string
        content_type:
          type: string
        created_at:
          type: string
        thumb_url:
          type: string
        thumb_uri:
          type: string
        provider:
          type: string
        meta:
          type: object
        url:
          type: string
        uri:
          type: string
    Media:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        filename:
          type: string
        content_type:
          type: string
        url:
          type: string
        thumb_url:
          type: string
        created_at:
          type: string
          format: date-time
    MediaResponse:
      type: object
      properties:
        data:
          oneOf:
          - $ref: '#/components/schemas/Media'
          - type: array
            items:
              $ref: '#/components/schemas/Media'
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: HTTP Basic auth using an API user name and token (api_user:token).
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorization header in the form: token api_user:token.'
x-refined-from:
- listmonk-collections-openapi.yml
- listmonk-openapi.yml