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

> Send one email. Pass an `Idempotency-Key` header on retry-sensitive
calls: retrying the exact same request with the same key replays the
original result (including a prior failure) instead of sending twice. Reusing the key with a different body is rejected as a client error.



## OpenAPI

````yaml /openapi/openapi-v1.json post /v1/email
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/email:
    post:
      summary: Send
      description: >-
        Send one email. Pass an `Idempotency-Key` header on retry-sensitive

        calls: retrying the exact same request with the same key replays the

        original result (including a prior failure) instead of sending twice.
        Reusing the key with a different body is rejected as a client error.
      operationId: send_v1_email_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/app__api__SendIn'
      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:
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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