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

# Admin Email Upload File

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

## 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-file`
- Auth: none declared

Generic attachment upload — any non-executable MIME, ≤25 MB.

Returns a permanent public URL the admin can link from the email body
(auto-inserted as `[📎 filename (1.2 MB)](url)`).

For image-specific upload (used by paste/drag inline images, compresses
JPG/PNG), use POST /email/upload-image instead.

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