Semestra

Storage

GET
/storage/usage

Use when the user asks how much space their files take or why an upload was rejected for exceeding the quota.

Authorization

cookiesemestra_session<token>

Set by the sign-in endpoints for the web app. Requests other than GET, HEAD and OPTIONS also need the X-Semestra-CSRF header set to the semestra_csrf cookie.

Response Body

Successful Response

application/json
  1. response
used_bytes*Used Bytes
quota_bytes*Quota Bytes

0 means unlimited.

by_module*
Example Request
curl -X GET 'https://example.com/storage/usage'
Example Response
{  "used_bytes": 0,  "quota_bytes": 0,  "by_module": {    "property1": 0,    "property2": 0  }}