> ## 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.

# List language and script blocks

> Lists tenant language blocks. With `domain`, returns the blocks scoped to that recipient domain (which you must own). Without it, returns the account-wide blocks. Messages with fewer than 20 letters of text are never matched.



## OpenAPI

````yaml /openapi.json get /inbound/filters/language-blocks
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: []
tags:
  - name: Email
    description: Send transactional email
  - name: Outbound
    description: 'Outbound sending: keys, SMTP users, domains, logs, suppression'
  - name: Inbound
    description: Inbound routing, domains and forward destinations
  - name: DMARC
    description: DMARC aggregate-report domain setup, DNS verification and analytics
  - name: Marketing
    description: >-
      Marketing suite: templates, audiences, contacts, broadcasts, themes,
      assets and signup forms
  - name: Signup Forms
    description: Hosted signup pages and form submissions
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /inbound/filters/language-blocks:
    get:
      tags:
        - Inbound
      summary: List language and script blocks
      description: >-
        Lists tenant language blocks. With `domain`, returns the blocks scoped
        to that recipient domain (which you must own). Without it, returns the
        account-wide blocks. Messages with fewer than 20 letters of text are
        never matched.
      parameters:
        - name: domain
          in: query
          required: false
          schema:
            type: string
          description: Recipient domain or subdomain. Omit for account-wide blocks.
      responses:
        '200':
          description: Language blocks
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  rules:
                    type: array
                    items:
                      $ref: '#/components/schemas/LanguageBlock'
        '400':
          description: Invalid domain
        '401':
          description: Unauthorized
        '403':
          description: Domain is owned by another account
        '404':
          description: Domain not found
components:
  schemas:
    LanguageBlock:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        userId:
          type: string
          nullable: true
        organizationId:
          type: string
          nullable: true
        domain:
          type: string
          nullable: true
          description: >-
            Recipient domain the block is scoped to, or null for the whole
            account
        language:
          type: string
          example: ru
          description: ISO 639-1 code for lang rows, ISO 15924 code for script rows
        match_type:
          type: string
          enum:
            - lang
            - script
        threshold:
          type: number
          minimum: 0
          maximum: 1
        action:
          type: string
          enum:
            - DENY
            - QUARANTINE
        enabled:
          type: integer
          enum:
            - 0
            - 1
        created_at:
          type: integer
          description: Unix seconds
        last_modified:
          type: integer
          description: Unix seconds
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.