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

# Send Batch

> Send up to 100 emails in one call. The `Idempotency-Key` header (see
/email above) covers the whole batch — retrying the same batch with the
same key replays the original per-item results rather than resending.



## OpenAPI

````yaml /openapi/openapi-v1.json post /v1/emails/batch
openapi: 3.1.0
info:
  title: SendFlit API
  version: 1.0.0
  description: Public v1 REST API for sending and managing transactional email.
servers:
  - url: https://api.sendflit.com
security: []
paths:
  /v1/emails/batch:
    post:
      summary: Send Batch
      description: |-
        Send up to 100 emails in one call. The `Idempotency-Key` header (see
        /email above) covers the whole batch — retrying the same batch with the
        same key replays the original per-item results rather than resending.
      operationId: send_batch_v1_emails_batch_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BatchIn:
      properties:
        emails:
          items:
            $ref: '#/components/schemas/app__api__SendIn'
          type: array
          maxItems: 100
          title: Emails
      type: object
      required:
        - emails
      title: BatchIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    app__api__SendIn:
      properties:
        from:
          type: string
          title: From
        to:
          type: string
          format: email
          title: To
        to_name:
          anyOf:
            - type: string
            - type: 'null'
          title: To Name
        cc:
          items:
            type: string
            format: email
          type: array
          title: Cc
          default: []
        bcc:
          items:
            type: string
            format: email
          type: array
          title: Bcc
          default: []
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        html:
          anyOf:
            - type: string
            - type: 'null'
          title: Html
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        reply_to:
          anyOf:
            - type: string
              format: email
            - type: 'null'
          title: Reply To
        headers:
          additionalProperties:
            type: string
          type: object
          title: Headers
          default: {}
        scheduled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduled At
        template_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Template Id
        template_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Template Name
        variables:
          additionalProperties:
            type: string
          type: object
          title: Variables
          default: {}
        attachments:
          items:
            $ref: '#/components/schemas/AttachmentIn'
          type: array
          title: Attachments
          default: []
      type: object
      required:
        - from
        - to
      title: SendIn
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AttachmentIn:
      properties:
        filename:
          type: string
          title: Filename
        content_b64:
          type: string
          title: Content B64
        content_type:
          type: string
          title: Content Type
          default: application/octet-stream
      type: object
      required:
        - filename
        - content_b64
      title: AttachmentIn
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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