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

# Get account-level blocklist rules

> Retrieves all blocklist rules that apply across all domains in the authenticated user's account.



## OpenAPI

````yaml /openapi.json get /inbound/account/blocklist
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /inbound/account/blocklist:
    get:
      tags:
        - Inbound
      summary: Get account-level blocklist rules
      description: >-
        Retrieves all blocklist rules that apply across all domains in the
        authenticated user's account.
      responses:
        '200':
          description: Successfully retrieved account blocklist rules
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  rules:
                    type: array
                    items:
                      type: object
                      properties:
                        uuid:
                          type: string
                          format: uuid
                          example: 550e8400-e29b-41d4-a716-446655440000
                        name:
                          type: string
                          example: Block spam domain
                        description:
                          type: string
                          nullable: true
                          example: Block all emails from known spam domain
                        action:
                          type: string
                          enum:
                            - DENY
                        userId:
                          type: string
                          nullable: true
                        organizationId:
                          type: string
                          nullable: true
                        enabled:
                          type: integer
                          enum:
                            - 0
                            - 1
                          example: 1
                        deleted:
                          type: integer
                          enum:
                            - 0
                            - 1
                          example: 0
                        last_modified:
                          type: integer
                          example: 1735689600
                        conditions:
                          type: object
                          properties:
                            senders:
                              type: array
                              items:
                                type: object
                                properties:
                                  sender_type:
                                    type: string
                                    enum:
                                      - email
                                      - domain
                                      - pattern
                                  sender_value:
                                    type: string
                                    example: spam-domain.com
                            recipients:
                              type: array
                              items:
                                type: object
                                properties:
                                  recipient_type:
                                    type: string
                                    enum:
                                      - email
                                      - domain
                                      - pattern
                                  recipient_value:
                                    type: string
                            subjects:
                              type: array
                              items:
                                type: object
                                properties:
                                  match_type:
                                    type: string
                                    enum:
                                      - exact
                                      - contains
                                      - starts_with
                                      - ends_with
                                      - regex
                                  subject_value:
                                    type: string
                                  case_sensitive:
                                    type: integer
                                    enum:
                                      - 0
                                      - 1
                            headers:
                              type: array
                              items:
                                type: object
                                properties:
                                  header_name:
                                    type: string
                                  match_type:
                                    type: string
                                    enum:
                                      - exact
                                      - contains
                                      - starts_with
                                      - ends_with
                                      - regex
                                      - exists
                                  header_value:
                                    type: string
                                    nullable: true
                                  case_sensitive:
                                    type: integer
                                    enum:
                                      - 0
                                      - 1
                            ips:
                              type: array
                              items:
                                type: object
                                properties:
                                  ip_type:
                                    type: string
                                    enum:
                                      - single
                                      - cidr
                                      - range
                                  ip_value:
                                    type: string
                                    example: 192.168.1.100
                            size:
                              type: object
                              nullable: true
                              properties:
                                min_size:
                                  type: integer
                                  nullable: true
                                max_size:
                                  type: integer
                                  nullable: true
                            attachments:
                              type: array
                              items:
                                type: object
                                properties:
                                  match_type:
                                    type: string
                                    enum:
                                      - filename
                                      - extension
                                      - mimetype
                                      - has_attachments
                                  match_value:
                                    type: string
                                    nullable: true
                                  case_sensitive:
                                    type: integer
                                    enum:
                                      - 0
                                      - 1
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Unauthorized
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to fetch account blocklist rules
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````