---
title: "Check Upload Limit Endpoint"
method: GET
path: "/checkUploadLimit"
---

# Check Upload Limit Endpoint

`GET /checkUploadLimit`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/checkUploadLimit`
- Auth: none declared

Check if an upload would exceed the relevant organization's storage and image tagging limits.

Mode is derived from the authenticated user's role (not from a query param):
- event_organizer: use auth user as event organizer; projectId is not used.
- photographer: projectId is required; resolve event organizer from event_organizer_projects for that project.
- admin: projectId is required; same as photographer (project's org limits).

Only event_organizer, photographer, and admin may call. Recipients cannot upload.

## Query parameters

- `projectId` integer, nullable: Required for photographer and admin; optional for event_organizer
- `uploadSizeMb` number, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavoot/apis/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
