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

# Import suppression rules from CSV

> Imports recipient emails from a CSV with a target_value column; skips rows that match an existing active rule.



## OpenAPI

````yaml /openapi.json post /outbound/suppression/import
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:
  /outbound/suppression/import:
    post:
      tags:
        - Outbound
      summary: Import suppression rules from CSV
      description: >-
        Imports recipient emails from a CSV with a target_value column; skips
        rows that match an existing active rule.
      requestBody:
        required: true
        content:
          text/csv:
            schema:
              type: string
              example: "target_value\r\nuser@example.com\r\nother@example.com\r\n"
      responses:
        '200':
          description: Import processed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  inserted:
                    type: integer
                    example: 12
                  skipped:
                    type: integer
                    example: 3
                  failed:
                    type: array
                    items:
                      type: object
                      properties:
                        row:
                          type: integer
                          example: 5
                        reason:
                          type: string
                          example: target_value "not-an-email" is not a valid email
        '400':
          description: Invalid CSV or missing columns
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing required column "target_value"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Unauthorized
        '413':
          description: Payload too large
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Body exceeds 5242880 bytes
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to load existing rules
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````