Media
List media files
Files in the workspace's Media directory (deleted files excluded), newest first, with filters and pages. Parameters in the query string. Always HTTP 200: check status.
get/media/list/
Request
- Base URL: https://wbiztool.com/api/v1
- URL: https://wbiztool.com/api/v1/media/list/
- Auth: none required
Query parameters
client_idinteger required
Your API Client ID.
api_keystring required
Your API key (query strings are often logged; POST with JSON avoids that).
pageinteger
limitinteger
file_type'image' | 'file'
searchstring
Case-insensitive match on the original or stored name.
Response
The files (status: 1), newest first, or an error (status: 0). Errors also come back with HTTP 200 and status: 0: client_id is required, api_key is required, client_id must be a valid integer, Invalid API key, Invalid client_id for this API key, Error retrieving media files: ….
Example response
{
"data": {
"media_files": [
{
"file_size_display": "242.5 KB",
"mime_type": "application/pdf"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.