Media

Get a media file

Details and download URL of one Media directory file by ID; credentials in the query string. Always HTTP 200 (check status), except an HTML 404 for a non-numeric ID.

get/media/{media_id}/

Request

  • Base URL: https://wbiztool.com/api/v1
  • URL: https://wbiztool.com/api/v1/media/{media_id}/
  • 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).

Response

The file (status: 1) 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, Media file not found, Error retrieving media file: ….

OR

Example response

{
  "data": {
    "file_size_display": "242.5 KB",
    "mime_type": "application/pdf"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.