Modoboa Logs API

The logs API from Modoboa — 4 operation(s) for logs.

Operations 4

GET /api/v2/logs/audit-trail/ Logs audit trail list #
GET /api/v2/logs/audit-trail/{id}/ Logs audit trail retrieve #
GET /api/v2/logs/messages/ Logs messages list #
GET /api/v2/logs/messages/{id}/ Logs messages retrieve #

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/modoboa:modoboa-logs-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

modoboa-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Modoboa Logs API
  version: v2
servers:
- url: https://demo.modoboa.org/api/schema-v2/
  description: Remote Demo server
- url: https://localhost:5000/api/schema-v2/
  description: Local server
tags:
- name: Logs
paths:
  /api/v2/logs/audit-trail/:
    get:
      operationId: logs_audit_trail_list
      description: Log viewset.
      parameters:
      - name: ordering
        required: false
        in: query
        description: Which field to use when ordering the results.
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - Logs
      security:
      - tokenAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedLogList'
          description: ''
      summary: Logs audit trail list
      x-summary-source: derived
  /api/v2/logs/audit-trail/{id}/:
    get:
      operationId: logs_audit_trail_retrieve
      description: Log viewset.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this log.
        required: true
      tags:
      - Logs
      security:
      - tokenAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Log'
          description: ''
      summary: Logs audit trail retrieve
      x-summary-source: derived
  /api/v2/logs/messages/:
    get:
      operationId: logs_messages_list
      description: Simple viewset to access message log.
      parameters:
      - name: ordering
        required: false
        in: query
        description: Which field to use when ordering the results.
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - Logs
      security:
      - tokenAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedMaillogList'
          description: ''
      summary: Logs messages list
      x-summary-source: derived
  /api/v2/logs/messages/{id}/:
    get:
      operationId: logs_messages_retrieve
      description: Simple viewset to access message log.
      parameters:
      - in: path
        name: id
        schema:
          type: string
        required: true
      tags:
      - Logs
      security:
      - tokenAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Maillog'
          description: ''
      summary: Logs messages retrieve
      x-summary-source: derived
components:
  schemas:
    Log:
      type: object
      description: Log serializer.
      properties:
        date_created:
          type: string
          readOnly: true
        message:
          type: string
        level:
          type: string
          maxLength: 15
        logger:
          type: string
          maxLength: 30
      required:
      - date_created
      - level
      - logger
      - message
    Maillog:
      type: object
      description: Serializer for Maillog model.
      properties:
        id:
          type: integer
          readOnly: true
        queue_id:
          type: string
          maxLength: 50
        date:
          type: string
          format: date-time
        sender:
          type: string
          format: email
          maxLength: 254
        rcpt:
          type: string
          format: email
          maxLength: 254
        original_rcpt:
          type:
          - string
          - 'null'
          format: email
          maxLength: 254
        size:
          type: integer
          maximum: 9223372036854775807
          minimum: 0
          format: int64
        status:
          type: string
          maxLength: 15
      required:
      - date
      - id
      - queue_id
      - rcpt
      - sender
      - size
      - status
    PaginatedMaillogList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/Maillog'
    PaginatedLogList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/Log'
  securitySchemes:
    oauth2:
      type: oauth2
      flows: {}
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"