mailjunky-ai Analytics API

Email and event statistics

Operations 1

GET /stats Get email statistics #

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/mailjunky-ai:mailjunky-ai-analytics-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

mailjunky-ai-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MailJunky Analytics API
  version: 1.0.0
  description: 'The MailJunky API lets you send transactional emails, track user events, manage contacts, and build intelligent email workflows. All endpoints require API key authentication unless noted otherwise.


    ## SDK


    Install the official SDK for the easiest integration:


    ```bash

    npm install @mailjunky/sdk

    ```


    ```typescript

    import { MailJunky } from ''@mailjunky/sdk''

    const mailjunky = new MailJunky({ apiKey: ''mj_live_xxx'' })

    ```


    For browser-side event tracking:


    ```typescript

    import { initMailJunky } from ''@mailjunky/sdk/browser''

    const mj = initMailJunky({ apiKey: ''mj_pub_xxx'' })

    ```


    ## Authentication


    Authenticate by including your API key in the `Authorization` header:


    ```

    Authorization: Bearer mj_live_your_api_key

    ```


    You can also use the `X-API-Key` header. Public keys (`mj_pub_*`) are restricted to event tracking only.


    ## Rate Limits


    All responses include rate limit headers:

    - `X-RateLimit-Limit` - Requests allowed per window

    - `X-RateLimit-Remaining` - Requests remaining

    - `X-RateLimit-Reset` - Window reset time (unix timestamp)

    - `Retry-After` - Seconds to wait (when rate limited)


    ## Base URL


    ```

    https://www.mailjunky.ai/api/v1

    ```'
  contact:
    name: MailJunky Support
    url: https://www.mailjunky.ai
    email: support@mailjunky.ai
servers:
- url: https://www.mailjunky.ai/api/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Analytics
  description: Email and event statistics
paths:
  /stats:
    get:
      operationId: getEmailStats
      summary: Get email statistics
      description: 'Retrieve email delivery statistics including rates, health status, and current period usage.


        **Rate limit:** 100 requests/minute'
      tags:
      - Analytics
      parameters:
      - name: range
        in: query
        schema:
          type: string
          enum:
          - 24h
          - 7d
          - 30d
          - 90d
          default: 7d
        description: Time range for statistics
      responses:
        '200':
          description: Email statistics
          content:
            application/json:
              schema:
                type: object
                properties:
                  range:
                    type: string
                  current_period:
                    type: object
                    properties:
                      period:
                        type: string
                        description: Current billing period (YYYY-MM)
                      emails_sent:
                        type: integer
                      limit:
                        type: integer
                      percentage_used:
                        type: number
                  last_30_days:
                    type: object
                    properties:
                      total:
                        type: integer
                      sent:
                        type: integer
                      delivered:
                        type: integer
                      bounced:
                        type: integer
                      complained:
                        type: integer
                      failed:
                        type: integer
                  rates:
                    type: object
                    properties:
                      delivery:
                        type: string
                        description: Delivery rate as decimal
                      bounce:
                        type: string
                        description: Bounce rate as decimal
                      complaint:
                        type: string
                        description: Complaint rate as decimal
                  health:
                    type: object
                    properties:
                      bounce_status:
                        type: string
                        enum:
                        - healthy
                        - warning
                        - critical
                        description: healthy (<3%), warning (3-5%), critical (>=5%)
                      complaint_status:
                        type: string
                        enum:
                        - healthy
                        - warning
                        - critical
                        description: healthy (<0.05%), warning (0.05-0.1%), critical (>=0.1%)
              example:
                range: 7d
                current_period:
                  period: 2026-02
                  emails_sent: 4523
                  limit: 10000
                  percentage_used: 45.23
                last_30_days:
                  total: 12450
                  sent: 12300
                  delivered: 12250
                  bounced: 45
                  complained: 5
                  failed: 150
                rates:
                  delivery: '0.996'
                  bounce: '0.004'
                  complaint: '0.0004'
                health:
                  bounce_status: healthy
                  complaint_status: healthy
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            statusMessage: Unauthorized
            message: Invalid or missing API key
  schemas:
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        statusMessage:
          type: string
        message:
          type: string
        data:
          type: object
          description: Additional error details (e.g. validation errors)
          properties:
            fieldErrors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
            formErrors:
              type: array
              items:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your `mj_live_*` or `mj_pub_*` key as the bearer token.
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Alternative: pass your API key via the X-API-Key header.'
x-scalar-sdk-installation:
- lang: Node
  label: MailJunky SDK
  description: 'Install the official **MailJunky SDK** from npm:'
  source: npm install @mailjunky/sdk
- lang: JavaScript
  label: Browser SDK
  description: 'For browser-side event tracking:'
  source: npm install @mailjunky/sdk