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

# Send an email with attachments



## OpenAPI

````yaml /customer-openapi.json post /sending/messages/with-attachments
openapi: 3.1.0
info:
  title: WazobiaMail API
  version: 1.0.0
  description: >-
    Customer-facing WazobiaMail API. Base URL
    https://app.wazobiamail.com/api/v1. Every response uses the {success,
    message, data} envelope. This specification covers only the public customer
    endpoints.
  contact:
    name: WazobiaMail Support
    url: https://wazobiamail.com/contact
servers:
  - url: https://app.wazobiamail.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: >-
      Sign up, sign in, tokens and sessions. No credentials needed except where
      a token is exchanged.
  - name: Account
    description: Profile, password, two-factor, notifications and account data.
  - name: Sending
    description: Sending API keys, messages, domains, SMTP access and engagement.
  - name: Mailboxes
    description: Hosted mailboxes and their credentials.
  - name: Relays
    description: Customer SMTP relay configurations.
  - name: Billing
    description: Plans, subscriptions, invoices, payments and email credits.
  - name: Support
    description: Support tickets.
  - name: Dashboard
    description: Usage overview and onboarding state.
paths:
  /sending/messages/with-attachments:
    post:
      tags:
        - Sending
      summary: Send an email with attachments
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - message
                - files
              properties:
                message:
                  type: string
                  description: >-
                    JSON-encoded message using the same envelopeSender, to and
                    content fields as POST /sending/messages.
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: >-
                    Repeat the files field for each attachment. Maximum combined
                    size: 5 MB.
      responses:
        '200':
          description: Accepted for sending.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
      security:
        - sendingApiKey: []
        - bearerAuth: []
components:
  schemas:
    Envelope:
      type: object
      required:
        - success
        - message
        - data
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Done
        data:
          description: Payload; shape depends on the endpoint.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      x-default: ACCESS_TOKEN
    sendingApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      x-default: YOUR_API_KEY

````

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