# 获取邮箱列表V2

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/mail/list:
    post:
      summary: 获取邮箱列表V2
      deprecated: false
      description: ''
      tags:
        - 邮箱
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                token:
                  description: 后台生成的token
                  example: '{{token}}'
                  type: string
                domain_id:
                  description: 域名ID(可在脆球后台获取，或者通过/v1/domain/list接口获取，id字段即为domain_id)
                  example: '12345678'
                  type: string
                offset:
                  description: 下标，第一次查询留空，查询第二页时传入第一页返回的offset
                  example: 1753249650,1721249659550380508
                  type: string
                limit:
                  description: 每页数量（最大20）
                  example: 20
                  type: integer
                sort_value:
                  description: 当前仅支持根据created_at排序
                  example: created_at
                  type: string
                sort_type:
                  description: desc/asc 降序/升序
                  example: desc
                  type: string
                mail:
                  description: 根据邮箱搜索
                  example: xxx@abc.com
                  type: string
                mark:
                  description: 根据备注搜索
                  example: 备注
                  type: string
              required:
                - token
                - domain_id
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      list:
                        type: array
                        items:
                          type: object
                          properties:
                            created_at:
                              type: integer
                            dkim_status:
                              type: integer
                            domain_id:
                              type: string
                            id:
                              type: string
                            imap_filter_id:
                              type: string
                            last_login_time:
                              type: integer
                            mail:
                              type: string
                            mail_type:
                              type: integer
                            mark:
                              type: string
                            script_name:
                              type: string
                            spam_status:
                              type: integer
                            spf_status:
                              type: integer
                            status:
                              type: integer
                            updated_at:
                              type: integer
                            user_id:
                              type: string
                            vip_status:
                              type: integer
                          x-apifox-orders:
                            - created_at
                            - dkim_status
                            - domain_id
                            - id
                            - imap_filter_id
                            - last_login_time
                            - mail
                            - mail_type
                            - mark
                            - script_name
                            - spam_status
                            - spf_status
                            - status
                            - updated_at
                            - user_id
                            - vip_status
                      next_offset:
                        type: integer
                      has_more:
                        type: string
                    required:
                      - list
                      - next_offset
                      - has_more
                    x-apifox-orders:
                      - list
                      - next_offset
                      - has_more
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
              example:
                code: 200
                msg: 成功
                data:
                  list:
                    - id: '1723249659505345161'
                      mail: abc@test.vip
                      user_id: '1723479969183531831'
                      domain_id: '1723413456751264602'
                      status: 1
                      mark: ''
                      mail_type: 0
                      imap_id: ''
                      third_imap_status: 1
                      admin_third_imap_status: 1
                      third_pop_status: 1
                      admin_third_pop_status: 1
                      third_smtp_status: 1
                      admin_third_smtp_status: 1
                      active_status: 1
                      message_size_status: 1
                      migrate_status: 0
                      preserved_status: -1
                      message_inbox_num: 0
                      message_size: 0
                      last_login_time: 0
                      created_at: 1723249659
                      updated_at: 0
                  next_offset: 1703249658,1703249658182781647
                  has_more: true
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 邮箱
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2485881/apis/api-331925144-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://domain-open-api.cuiqiu.com
    description: 正式环境
security: []

```
