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

# 列出条目

> 列出全局允许列表或阻止列表条目。



## OpenAPI

````yaml openapi/zh/agentmail.json GET /agentmail/lists/{direction}/{type}
openapi: 3.1.0
info:
  title: AgentMail API
  version: 1.0.0
  description: 通过 AIsa 统一网关公开的 AgentMail 电子邮件 API 端点。改编自上游 docs.agentmail.to OpenAPI 规范。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - Bearer: []
paths:
  /agentmail/lists/{direction}/{type}:
    get:
      tags:
        - subpackage_lists
      summary: 列出条目
      description: |-
        **CLI：**
        ```bash
        agentmail lists list --direction <direction> --type <type>
        ```
      operationId: get_agentmail_lists_direction_type
      parameters:
        - name: direction
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/type_lists_Direction'
        - name: type
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/type_lists_ListType'
        - name: limit
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/type__Limit'
        - name: page_token
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/type__PageToken'
        - name: Authorization
          in: header
          description: Bearer 身份验证
          required: true
          schema:
            type: string
      responses:
        '200':
          description: 状态码为 200 的响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_lists_ListListEntriesResponse'
components:
  schemas:
    type_lists_Direction:
      type: string
      enum:
        - send
        - receive
        - reply
      description: 列表条目的方向。
      title: Direction
    type_lists_ListType:
      type: string
      enum:
        - allow
        - block
      description: 列表条目的类型。
      title: ListType
    type__Limit:
      type: integer
      description: 返回项目数量的上限。
      title: Limit
    type__PageToken:
      type: string
      description: 用于分页的页面 token。
      title: PageToken
    type_lists_ListListEntriesResponse:
      type: object
      properties:
        count:
          $ref: '#/components/schemas/type__Count'
        limit:
          $ref: '#/components/schemas/type__Limit'
        next_page_token:
          $ref: '#/components/schemas/type__PageToken'
        entries:
          type: array
          items:
            $ref: '#/components/schemas/type_lists_ListEntry'
          description: 按 entry 升序排列。
      required:
        - count
        - entries
      title: ListListEntriesResponse
    type__Count:
      type: integer
      description: 返回的项目数量。
      title: Count
    type_lists_ListEntry:
      type: object
      properties:
        entry:
          type: string
          description: 列表条目的电子邮件地址或域名。
        organization_id:
          $ref: '#/components/schemas/type__OrganizationId'
        reason:
          type: string
          description: 添加该条目的原因。
        direction:
          $ref: '#/components/schemas/type_lists_Direction'
        list_type:
          $ref: '#/components/schemas/type_lists_ListType'
        entry_type:
          $ref: '#/components/schemas/type_lists_EntryType'
        created_at:
          type: string
          format: date-time
          description: 条目创建时间。
        read_only:
          type: boolean
          description: 该条目是否为只读且无法通过 API 删除。
      required:
        - entry
        - organization_id
        - direction
        - list_type
        - entry_type
        - created_at
      title: ListEntry
    type__OrganizationId:
      type: string
      description: 组织 ID。
      title: OrganizationId
    type_lists_EntryType:
      type: string
      enum:
        - email
        - domain
      description: 该条目是电子邮件地址还是域名。
      title: EntryType
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer

````