Skip to content

Read the tenant's storage use

GET
/v1/storage
curl --request GET \
--url https://api.pixonaut.app/v1/storage \
--header 'Authorization: Bearer <token>'

Operation ID: storage.get

Bytes used against the quota, counting every finished asset at its full size, and how many there are, in all and by category: library pictures (assets), customers’ design uploads (customerUploads), blanks’ photos (blankPhotos) and everything in the sandbox (sandbox). A workspace and its sandbox share the quota, so both read the same numbers; a copy Sync made counts only once live has deleted the upload it copies. The categories add up to usedBytes and fileCount.

The tenant’s storage use

Media typeapplication/json
object
categories
required

Every category, in a fixed order, an empty one reading 0.

Array<object>
object
bytes
required
number
category
required
string
fileCount
required
number
fileCount
required
number
quotaBytes
required
number
usedBytes
required
number

Examples

Exampleexample

Example

{
"categories": [
{
"bytes": 31457280,
"category": "assets",
"fileCount": 9
},
{
"bytes": 10485760,
"category": "customerUploads",
"fileCount": 5
},
{
"bytes": 10485760,
"category": "blankPhotos",
"fileCount": 3
},
{
"bytes": 0,
"category": "sandbox",
"fileCount": 0
}
],
"fileCount": 17,
"quotaBytes": 1073741824,
"usedBytes": 52428800
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors