---
title: "get all mail servers"
method: GET
path: "/api/v1/mails"
tags: ["mails"]
---

# get all mail servers

`GET /api/v1/mails`

## Response `200`

Ok

- MailServers
  - `status` string
  - `data` object
    - `mailServers` MailServerResponse[]
      - `dns_setup` object
        - `dkim` object
          - `dkim_error` string
          - `dkim_record` string
          - `dkim_record_name` string
          - `dkim_status` string
        - `mx_record` object
          - `mx_error` string
          - `mx_status` string
          - `mx_record_value` string
        - `return_path` object
          - `return_path_domain` string
          - `return_path_error` string
          - `return_path_status` string
          - `return_path_value` string
        - `spf` object
          - `spf_error` string
          - `spf_record` string
          - `spf_status` string
      - `domain` string
      - `recordsStatus` string
      - `status` string
      - `rateLimitTier` object
        - `hourly` number
        - `daily` number
        - `monthly` number
      - `createdAt` string
      - `id` string
      - `smtp_server` string
      - `smtp_port` number
      - `rootPartOfDomain` string

## Other responses

- `500` — Unexpected error

## Changes

- **2023-10-06** `6ba885651c6f` — 1 breaking, 1 info
  - removed the media type `*/*` for the response with the status `200`
  - added the media type `application/json` for the response with the status `200`
- **2023-10-04** `c63802bd8a38` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/changes/api/v1/mails/get.md)

---

[API](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion.md) · [All operations](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liara-cloud/liara-mail-api-documentaion/revisions/5ae39ee353b2/schema)
