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

# get single mail server



## OpenAPI

````yaml /spec/mail.yaml get /api/v1/mails/{mailServerID}
openapi: 3.0.1
info:
  title: Liara Mail API Documentaion
  description: |-
    A fully featured mail delivery platform for incoming & outgoing e-mail

    Parameters:
    - `teamID`: To access services in a team
  contact:
    name: liara
    url: https://liara.ir
    email: support@liara.ir
  version: 1.0.0
servers:
  - url: https://mail-service.iran.liara.ir
security:
  - jwt: []
tags:
  - name: mails
    description: Everything about your mails
  - name: inboundrules
    description: Email address (or domain) that you would like to block from sending.
  - name: smtp
    description: SMTP endpoints.
  - name: accounts
    description: Accounts of your mails.
  - name: messages
    description: Messages endpoints.
  - name: forward
    description: Forward endpoints.
  - name: attachments
    description: Attachments endpoints.
  - name: event
    description: Event endpoints.
  - name: tags
    description: Tags endpoints.
  - name: plan
    description: Plan endpoints.
externalDocs:
  description: Find out more about Liara Mail Server
  url: https://docs.liara.ir/email/create-mail-server/
paths:
  /api/v1/mails/{mailServerID}:
    get:
      tags:
        - mails
      summary: get single mail server
      operationId: getSingleMailServer
      parameters:
        - name: mailServerID
          in: path
          required: true
          schema:
            pattern: ^[0-9a-fA-F]{24}$
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailServer'
        '400':
          description: Bad Request
          content: {}
        '404':
          description: Mail Server not found
          content: {}
        '500':
          description: Unexpected error
          content: {}
components:
  schemas:
    MailServer:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            mailServer:
              $ref: '#/components/schemas/MailServerResponse'
    MailServerResponse:
      type: object
      properties:
        dns_setup:
          type: object
          properties:
            dkim:
              type: object
              properties:
                dkim_error:
                  type: string
                dkim_record:
                  type: string
                dkim_record_name:
                  type: string
                dkim_status:
                  type: string
            mx_record:
              type: object
              properties:
                mx_error:
                  type: string
                mx_status:
                  type: string
                mx_record_value:
                  type: string
            return_path:
              type: object
              properties:
                return_path_domain:
                  type: string
                return_path_error:
                  type: string
                return_path_status:
                  type: string
                return_path_value:
                  type: string
            spf:
              type: object
              properties:
                spf_error:
                  type: string
                spf_record:
                  type: string
                spf_status:
                  type: string
        domain:
          type: string
        recordsStatus:
          type: string
        status:
          type: string
        rateLimitTier:
          type: object
          properties:
            hourly:
              type: number
            daily:
              type: number
            monthly:
              type: number
        createdAt:
          type: string
        id:
          type: string
        smtp_server:
          type: string
        smtp_port:
          type: number
        rootPartOfDomain:
          type: string
  securitySchemes:
    jwt:
      type: apiKey
      description: 'Enter the token with the `Bearer: ` prefix, e.g. "Bearer abcde12345".  #'
      name: Authorization
      in: header

````