---
title: "Admin Email Upload Image"
method: POST
path: "/api/admin/email/upload-image"
tags: ["admin"]
---

# Admin Email Upload Image

`POST /api/admin/email/upload-image`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/admin/email/upload-image`
- Auth: none declared

Upload a single image into the public `email-assets` Supabase bucket.
Returns a permanent public URL the admin can paste/embed in email body.

Enforces ≤5 MB and image/* content type. Oversized images get compressed
via the existing storage_service.compress_image() helper (PIL-based).

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
