HTTP API
Storage use
GET
/v1/me/storage
const url = 'https://sergo.example.com/v1/me/storage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://sergo.example.com/v1/me/storage \ --header 'Authorization: Bearer <token>'How much the key’s owner has uploaded, and the limits that apply. Personal keys only — an agent key gets 404.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
StorageUse
object
used_bytes
required
Used Bytes
The size of the originals this person uploaded, files in Trash included
integer
limit_bytes
required
max_file_bytes
required
Max File Bytes
The largest file one upload may be
integer
Example generated
{ "used_bytes": 1, "limit_bytes": 1, "max_file_bytes": 1}