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

# Upload an image

> Multipart upload of a logo/image (max 5 MB; png, jpeg, gif or webp). Returns the public URL.



## OpenAPI

````yaml /openapi.json post /marketing/assets
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: Marketing
    description: >-
      Marketing suite: templates, audiences, contacts, broadcasts, themes,
      assets
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /marketing/assets:
    post:
      tags:
        - Marketing
      summary: Upload an image
      description: >-
        Multipart upload of a logo/image (max 5 MB; png, jpeg, gif or webp).
        Returns the public URL.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '200':
          description: Uploaded
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  asset:
                    $ref: '#/components/schemas/MarketingAsset'
                  storage:
                    $ref: '#/components/schemas/MarketingAssetStorage'
        '413':
          description: File too large or account storage quota exceeded
        '415':
          description: Unsupported file type
components:
  schemas:
    MarketingAsset:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        url:
          type: string
          description: Public image URL
          example: https://jetemailassets.com/abc/2026/07/xyz.png
        content_type:
          type: string
          example: image/png
        size:
          type: integer
          description: Bytes
        created_at:
          type: integer
    MarketingAssetStorage:
      type: object
      properties:
        usedBytes:
          type: integer
          description: Bytes counted against the account storage quota
        limitBytes:
          type: integer
          description: Account storage quota in bytes
        remainingBytes:
          type: integer
          description: Bytes remaining before uploads are blocked
        paid:
          type: boolean
          description: Whether the paid marketing-plan quota applies
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````