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

# Create lists



## OpenAPI

````yaml POST /lists
openapi: 3.1.0
info:
  title: SentFromAI API
  version: 0.1.0
  description: >-
    Comms infrastructure for AI agents. Email send/receive, threading,
    attachments, drafts, webhooks, realtime, and search.
servers:
  - url: https://api.sentfrom.ai/v1
security:
  - bearerAuth: []
tags:
  - name: inboxes
  - name: messages
  - name: threads
  - name: drafts
  - name: webhooks
  - name: labels
  - name: lists
  - name: attachments
  - name: domains
    description: Custom sending domains
paths:
  /lists:
    post:
      tags:
        - lists
      operationId: createRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - kind
                - pattern
              properties:
                kind:
                  type: string
                  enum:
                    - allow
                    - block
                direction:
                  type: string
                  enum:
                    - inbound
                    - outbound
                    - both
                pattern:
                  type: string
      responses:
        '201':
          description: Created
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````