JustEmails Emails API

The Emails API from JustEmails — 17 operation(s) for emails.

GitHub OpenAPI

Operations 22

GET /api/v1/emails List emails (unified inbox) #
PATCH /api/v1/emails Bulk email action #
GET /api/v1/emails/{id} Get one email #
DELETE /api/v1/emails/{id} Permanently delete an email (trash/drafts/spam only) #
PATCH /api/v1/emails/{id} Update Emails #
GET /api/v1/emails/search Full-text search across emails #
POST /api/v1/emails/send Send from a mailbox (dashboard-style) #
GET /api/v1/emails/drafts List drafts #
POST /api/v1/emails/drafts Create a draft #
PATCH /api/v1/emails/drafts/{id} Update a draft #
DELETE /api/v1/emails/drafts/{id} Delete a draft #
GET /api/v1/emails/{id}/block-options Get Block Options #
POST /api/v1/emails/{id}/cancel-send Create Cancel Send #
POST /api/v1/emails/{id}/report-spam Create Report Spam #
POST /api/v1/emails/attachments Create Attachments #
GET /api/v1/emails/attachments/scan-status List Scan Status #
POST /api/v1/emails/bodies Create Bodies #
POST /api/v1/emails/move Create Move #
POST /api/v1/emails/recover Create Recover #
POST /api/v1/emails/reparse Create Reparse #
GET /api/v1/emails/sse List Sse #
GET /api/v1/emails/unread-counts List Unread Counts #

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/justemails-app:justemails-app-emails-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

justemails-app-emails-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: JustEmails Emails API
  version: 1.0.0
  description: REST API for JustEmails — unlimited-domain email hosting + transactional email. This spec is consumable by ChatGPT Custom GPTs, Zapier, n8n, Make, and any OpenAPI-aware tool. The same capabilities are also exposed via MCP at https://mcp.justemails.app/mcp for AI clients like Claude Desktop / Cursor / VS Code.
  contact:
    name: JustEmails
    url: https://justemails.app
  license:
    name: Proprietary
  termsOfService: https://justemails.app/terms
servers:
- url: https://justemails.app
  description: Production
security:
- bearerAuth: []
tags:
- name: Emails
paths:
  /api/v1/emails:
    get:
      operationId: listEmails
      summary: List emails (unified inbox)
      description: Newest first by receivedAt, also for an inbox holding a snoozed message that came back.
      tags:
      - Emails
      parameters:
      - name: folder
        in: query
        schema:
          type: string
      - name: mailboxId
        in: query
        schema:
          type: string
          format: uuid
      - name: isRead
        in: query
        schema:
          type: boolean
      - name: cursor
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Email'
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
    patch:
      operationId: bulkEmailAction
      summary: Bulk email action
      tags:
      - Emails
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - emailIds
              - action
              properties:
                emailIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                action:
                  type: string
                folder:
                  type: string
      responses:
        '200':
          description: OK
  /api/v1/emails/{id}:
    get:
      operationId: getEmail
      summary: Get one email
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
    delete:
      operationId: permanentDeleteEmail
      summary: Permanently delete an email (trash/drafts/spam only)
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
    patch:
      operationId: patchemailsById
      summary: Update Emails
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/search:
    get:
      operationId: searchEmails
      summary: Full-text search across emails
      tags:
      - Emails
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 500
      responses:
        '200':
          description: OK
  /api/v1/emails/send:
    post:
      operationId: sendDashboardEmail
      summary: Send from a mailbox (dashboard-style)
      tags:
      - Emails
      responses:
        '200':
          description: OK
  /api/v1/emails/drafts:
    get:
      operationId: listDrafts
      summary: List drafts
      tags:
      - Emails
      responses:
        '200':
          description: OK
    post:
      operationId: createDraft
      summary: Create a draft
      tags:
      - Emails
      responses:
        '200':
          description: OK
  /api/v1/emails/drafts/{id}:
    patch:
      operationId: updateDraft
      summary: Update a draft
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
    delete:
      operationId: deleteDraft
      summary: Delete a draft
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
  /api/v1/emails/{id}/block-options:
    get:
      operationId: getemailsByIdBlockOptions
      summary: Get Block Options
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/{id}/cancel-send:
    post:
      operationId: postemailsByIdCancelSend
      summary: Create Cancel Send
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/{id}/report-spam:
    post:
      operationId: postemailsByIdReportSpam
      summary: Create Report Spam
      tags:
      - Emails
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/attachments:
    post:
      operationId: postemailsAttachments
      summary: Create Attachments
      tags:
      - Emails
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/attachments/scan-status:
    get:
      operationId: getemailsAttachmentsScanStatus
      summary: List Scan Status
      tags:
      - Emails
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/bodies:
    post:
      operationId: postemailsBodies
      summary: Create Bodies
      tags:
      - Emails
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/move:
    post:
      operationId: postemailsMove
      summary: Create Move
      tags:
      - Emails
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/recover:
    post:
      operationId: postemailsRecover
      summary: Create Recover
      tags:
      - Emails
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/reparse:
    post:
      operationId: postemailsReparse
      summary: Create Reparse
      tags:
      - Emails
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/sse:
    get:
      operationId: getemailsSse
      summary: List Sse
      tags:
      - Emails
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
  /api/v1/emails/unread-counts:
    get:
      operationId: getemailsUnreadCounts
      summary: List Unread Counts
      tags:
      - Emails
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    additionalProperties: true
                required:
                - data
        '401':
          description: Missing or invalid API key
        4XX:
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                    - code
                    - message
components:
  schemas:
    Email:
      type: object
      properties:
        id:
          type: string
          format: uuid
        from:
          type: string
        to:
          type: string
        cc:
          type:
          - string
          - 'null'
        subject:
          type:
          - string
          - 'null'
        snippet:
          type:
          - string
          - 'null'
        folder:
          type: string
        isRead:
          type: boolean
        isStarred:
          type: boolean
        isDraft:
          type: boolean
        hasAttachments:
          type: boolean
        receivedAt:
          type: string
          format: date-time
        resurfacedAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When a snoozed message last came back to the inbox, or null. receivedAt stays its real date, and API lists stay in receivedAt order; the webmail inbox shows such a message at this time. Returned by the list and search routes.
        mailboxId:
          type: string
          format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: 'Create an API key at https://justemails.app/settings/api-keys and pass as `Authorization: Bearer <key>`.'
externalDocs:
  description: Full MCP tool catalog + integration guides
  url: https://mcp.justemails.app/docs