> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openmail.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Get inbox mail client settings

> Server settings for reading and sending this inbox's mail from a mail app such as Apple Mail, Outlook or Thunderbird. Both servers use SSL/TLS. Sign in with `username` and an inbox-scoped API key that has `mailAccess` on as the password. Mint one with `POST /v1/inboxes/{id}/api-keys` and `mailAccess: true`, or turn it on for an existing key with `PATCH /v1/inboxes/{id}/api-keys/{keyId}`.



## OpenAPI

````yaml https://api.openmail.sh/openapi.json get /v1/inboxes/{id}/mail-client
openapi: 3.0.3
info:
  title: OpenMail API
  description: >-
    Email infrastructure API for AI agents. Create inboxes, send and receive
    email, and get real-time notifications via webhooks.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.openmail.sh
security:
  - bearerAuth: []
tags:
  - name: pods
    description: Isolated sub-accounts for your end users or tenants
  - name: inboxes
    description: Email inboxes and their webhook configuration
  - name: domains
    description: >-
      Custom domains: add your own sending/receiving domain, publish DNS, and
      verify it
  - name: owned-domains
    description: >-
      Domains your organisation controls but does not send from. Prove ownership
      with one TXT record and mail to their addresses stops counting toward the
      cold outreach limits.
  - name: messages
    description: Sending and listing messages
  - name: folders
    description: Inbox folders and per-message filing
  - name: drafts
    description: Create, view, edit and send saved email drafts
  - name: threads
    description: Conversation threads and read status
  - name: attachments
    description: Downloading and extracting text from attachments
  - name: policy
    description: >-
      Correspondent policy — provider-enforced allow/block rules and allowlist
      mode, scoped per account, pod, or inbox. Account-wide key only.
  - name: limits
    description: >-
      Sending limits: today's cold outreach caps on new recipients, per account,
      inbox, and domain, and what raises them
  - name: webhooks
    description: >-
      Webhook endpoints: where events are sent, how each request is
      authenticated, and the delivery log. Account-wide key only.
  - name: feedback
    description: Reporting bugs, friction, and feature requests to the OpenMail team
paths:
  /v1/inboxes/{id}/mail-client:
    get:
      tags:
        - inboxes
      summary: Get inbox mail client settings
      description: >-
        Server settings for reading and sending this inbox's mail from a mail
        app such as Apple Mail, Outlook or Thunderbird. Both servers use
        SSL/TLS. Sign in with `username` and an inbox-scoped API key that has
        `mailAccess` on as the password. Mint one with `POST
        /v1/inboxes/{id}/api-keys` and `mailAccess: true`, or turn it on for an
        existing key with `PATCH /v1/inboxes/{id}/api-keys/{keyId}`.
      operationId: getInboxMailClient
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Inbox ID
      responses:
        '200':
          description: Mail client settings
          content:
            application/json:
              schema:
                description: Mail client settings
                type: object
                additionalProperties: false
                required:
                  - inboxId
                  - username
                  - imap
                  - smtp
                properties:
                  inboxId:
                    type: string
                    description: Inbox ID
                  username:
                    type: string
                    description: 'Username for both servers: the inbox''s full address.'
                  imap:
                    type: object
                    additionalProperties: false
                    required:
                      - host
                      - port
                    properties:
                      host:
                        type: string
                        description: Server hostname
                      port:
                        type: integer
                        description: >-
                          Server port. Connect with SSL/TLS from the start, not
                          STARTTLS.
                    description: Incoming mail server (IMAP)
                  smtp:
                    type: object
                    additionalProperties: false
                    required:
                      - host
                      - port
                    properties:
                      host:
                        type: string
                        description: Server hostname
                      port:
                        type: integer
                        description: >-
                          Server port. Connect with SSL/TLS from the start, not
                          STARTTLS.
                    description: Outgoing mail server (SMTP)
        '403':
          description: >-
            The key is scoped to a different pod or inbox, or IMAP / SMTP access
            isn't available for this organisation
            (`mail_client_access_unavailable`)
          content:
            application/json:
              schema:
                description: >-
                  The key is scoped to a different pod or inbox, or IMAP / SMTP
                  access isn't available for this organisation
                  (`mail_client_access_unavailable`)
                allOf:
                  - $ref: '#/components/schemas/Error'
        '404':
          description: Inbox not found
          content:
            application/json:
              schema:
                description: Inbox not found
                allOf:
                  - $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      additionalProperties: true
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.