---
title: "Get Storage Endpoint"
method: GET
path: "/getStorage"
---

# Get Storage Endpoint

`GET /getStorage`

Returns used storage (GB) and limit (GB) for the relevant organization.

- mode=event_organizer: use auth user's id as event_organizer_id, resolve to organization.
- mode=photographer: require projectId, resolve one event_organizer from event_organizer_projects, then their organization.

Only event_organizer, photographer, and admin roles may call this; recipients are not allowed.

## Query parameters

- `mode` string, required — event_organizer or photographer
- `projectId` integer, nullable — Required when mode=photographer

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/16997cca6697/schema)
