For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.


Read file storage stats

post
/file/stats/read

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.

Authorizations
AuthorizationstringRequired

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.

Responses
200

The storage statistics

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/file/stats/read
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?