curl "https://api.scanova.io/media/allowed-files/?file_type=image"
[
{
"file_type": "image",
"extensions": ["png", "jpg", "jpeg", "gif", "svg"],
"mime_types": ["image/png", "image/jpeg", "image/gif", "image/svg+xml"],
"file_size": 5242880
}
]
Media Library
List allowed file types
GET /media/allowed-files/
GET
/
media
/
allowed-files
/
curl "https://api.scanova.io/media/allowed-files/?file_type=image"
[
{
"file_type": "image",
"extensions": ["png", "jpg", "jpeg", "gif", "svg"],
"mime_types": ["image/png", "image/jpeg", "image/gif", "image/svg+xml"],
"file_size": 5242880
}
]
Lists the extensions, MIME types, and size limits accepted by file upload, on the Management API host (
Use this to validate a file client-side before calling Upload a file —
api.scanova.io).
GET https://api.scanova.io/media/allowed-files/
No authentication required.
string
Comma-separated categories (
image, video, audio, pdf, doc, script) to filter to. Omit for all categories.curl "https://api.scanova.io/media/allowed-files/?file_type=image"
[
{
"file_type": "image",
"extensions": ["png", "jpg", "jpeg", "gif", "svg"],
"mime_types": ["image/png", "image/jpeg", "image/gif", "image/svg+xml"],
"file_size": 5242880
}
]
file_size is in bytes. Note that pdf/doc categories’ actual enforced limit may be higher or lower than what’s listed here if the account has a custom DOCUMENT_FILE_SIZE plan quota; this endpoint reports the static default.
Related
- Upload a file — the endpoint these constraints apply to.
- Management API overview — the auth scheme and quota rules that apply to this endpoint.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Query Parameters
Comma-separated categories (image, video, audio, pdf, doc, script) to filter to; omit for all.
Response
200 - application/json
Array of allowed-type definitions.
Was this page helpful?