File
How much of the account's file storage quota is in use.
This operation reports how much of the account's file storage quota is used and how much remains.
It is worth calling before reserving a file with any of the file/create operations elsewhere in the API, because those fail with error 268 once the quota is exhausted.
API actions
API base path: /file.
Operations that list no errors of their own return only the general error codes.
Return how much of the account's file storage quota is in use.
Useful before reserving a file with any of the */file/create operations, since those fail with error 268 once the quota is exhausted.
Callable with an empty body. Also accepts GET.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
The storage statistics
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error response object
POST /v2/file/stats/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"value": {
"file_count": 1,
"total_size": 1,
"quota": 1
}
}Last updated
Was this helpful?