Sonatype Config Mail API

Use this REST API to manage the configuration of an SMTP server, to receive email notifications.

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 4

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

DELETE /api/v2/config/mail Disable or remove the SMTP mail configuration · Delete configuration 3 #
Ask an LLM
“How do I stop sending emails by removing the mail configuration?”
“Can I disable the SMTP server settings entirely?”
Tell an agent destructive · confirm first
Delete the mail configuration.
Disable the email sending configuration.
GET /api/v2/config/mail Get the SMTP mail configuration · Get configuration 3 #
Ask an LLM
“What SMTP server settings are currently configured for sending emails?”
“Can I review the mail configuration before changing it?”
Tell an agent
Show the current mail configuration.
Get the SMTP server settings.
PUT /api/v2/config/mail Configure or update the SMTP mail server · Set configuration 3 #
Ask an LLM
“How do I set up the SMTP server for sending emails?”
“Can I change the mail server hostname, port or username?”
Tell an agent
Set the mail server hostname to {hostname}.
Update the mail configuration with username {username} and password {password}.
POST /api/v2/config/mail/test/{recipientEmail} Test an SMTP configuration without saving it · Test configuration #
Ask an LLM
“Can I send a test email to check the mail configuration works?”
“Is there a way to test mail settings without changing the current configuration?”
Tell an agent
Test the mail configuration by sending a test email to {recipientEmail}.
Send a test email to {recipientEmail} using the SMTP settings {hostname}:{port}.

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/sonatype:sonatype-config-mail-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

sonatype-config-mail-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Config Mail API
  version: '1.0'
  description: 'Operations tagged Config Mail across 2 of this provider''s published API definitions: sonatype-lifecycle-openapi.yml, sonatype-iq-openapi.yml. Each path carries the servers of the definition it was published in.'
security:
- BasicAuth: []
  BearerAuth: []
tags:
- description: Use this REST API to manage the configuration of an SMTP server, to receive email notifications.
  name: Config Mail
paths:
  /api/v2/config/mail:
    delete:
      description: 'Use this method to disable or remove an SMTP configuration.


        Permissions required: Edit System Configuration and Users'
      operationId: deleteConfiguration_3
      responses:
        '204':
          description: SMTP configuration was removed successfully.
        '404':
          description: SMTP server configuration does not exist.
      tags:
      - Config Mail
      summary: Delete configuration 3
      x-summary-source: derived
    get:
      description: 'Use this method to review the configuration for an SMTP server.


        Permissions required: Edit System Configuration and Users'
      operationId: getConfiguration_3
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiMailConfigurationDTO'
          description: The response contains:<ul><li>`hostname` is the hostname or IP address of the SMTP server used for outgoing mail.</li><li>`port` is the port number on which the SMTP server accepts email requests.</li><li>`username` is the username to authenticate users on the SMTP server.</li><li>`password` is always null, never included for security purposes for this method.</Li><li>`passwordIsIncluded` is always FALSE for this method.</li><li>`sslEnabled` is a boolean flag indicating if the connection to the SMTP server should use SSL/TLS right from the start.</li><li>`startIsEnabled` is a boolean flag indicating if the connection to the SMTP server should attempt to upgrade to SSL/TLS using the STARTTLS command.</li><li>`systemEmail` is the email address used for the FROM header in emails sent by the IQ Server.</li></ul>
        '404':
          description: No SMTP server is currently configured with the IQ Server.
      tags:
      - Config Mail
      summary: Get configuration 3
      x-summary-source: derived
    put:
      description: 'Use this method to configure or update an existing SMTP server configuration.


        Permissions required: Edit System Configuration and Users'
      operationId: setConfiguration_3
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiMailConfigurationDTO'
        description: Provide one or more values for the following in the JSON payload:<ul><li>`hostname` - is the hostname or IP address of the SMTP server used for outgoing mail.</li><li>`port` - is the port number on which the SMTP server accepts email requests.</li><li>`password` - depends upon the value of `passwordIsIncluded`.</li><li>`passwordIsIncluded` - if set to true, value must be provided for `password`, null is allowed.If set to false, the previous value will remain unchanged, provided that `hostname` and `port` are not changed.<li>`sslEnabled` - is a boolean flag indicating if the connection to the SMTP server should use SSL/TLSright from the start.</li><li>`startIsEnabled`- is a boolean flag indicating if the connection to the SMTP server should attempt toupgrade to SSL/TLS using the STARTTLS command.<li>`systemEmail` - is the email address used for the FROM header in emails sent by the IQ Server.</li></ul>
      responses:
        '204':
          description: SMTP server configuration was updated successfully.
        '400':
          description: Missing or invalid values provided.
      tags:
      - Config Mail
      summary: Set configuration 3
      x-summary-source: derived
  /api/v2/config/mail/test/{recipientEmail}:
    post:
      description: 'Use this method to test an SMTP configuration, without affecting the current configuration.


        Permissions required:Edit System Configuration and Users'
      operationId: testConfiguration
      parameters:
      - description: Enter the test recipient email address.
        in: path
        name: recipientEmail
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiMailConfigurationDTO'
        description: Provide one or more values for the following in the JSON payload:<ul><li>`hostname` - is the hostname or IP address of the SMTP server used for outgoing mail.</li><li>`port` - is the port number on which the SMTP server accepts email requests.</li><li>`password` - depends upon the value of `passwordIsIncluded`.</li><li>`passwordIsIncluded` - if set to true, value must be provided for `password`, null is allowed.If set to false, the previous value will remain unchanged, provided that `hostname` and `port` are not changed.<li>`sslEnabled` - is a boolean flag indicating if the connection to the SMTP server should use SSL/TLSright from the start.</li><li>`startIsEnabled`- is a boolean flag indicating if the connection to the SMTP server should attempt toupgrade to SSL/TLS using the STARTTLS command.<li>`systemEmail` - is the email address used for the FROM header in emails sent by the IQ Server.</li></ul>
      responses:
        '204':
          description: The test email was sent successfully.
        '400':
          description: Missing or invalid values provided.
      tags:
      - Config Mail
      summary: Test configuration
      x-summary-source: derived
components:
  schemas:
    ApiMailConfigurationDTO:
      properties:
        hostname:
          type: string
        password:
          type: string
        passwordIsIncluded:
          type: boolean
        port:
          format: int32
          type: integer
        sslEnabled:
          type: boolean
        startTlsEnabled:
          type: boolean
        systemEmail:
          type: string
        username:
          type: string
      type: object
  securitySchemes:
    BasicAuth:
      scheme: basic
      type: http
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
x-refined-from:
- sonatype-lifecycle-openapi.yml
- sonatype-iq-openapi.yml