logo

Downloading Media Files

Media files are downloaded using HTTP GET. The following HTTP headers must be set in the download request:
  • Content-Type = application/json
  • X-Token = "<Token>"

Media Server Download URL Format

Use the following URL format to download media files:
plain text
https://<nandboxBotServer>:<port>/nandbox/download/<media_id>
📌 Example:
plain text
https://w1.nandbox.net:8080/nandbox/download/123456789.jpg

Notes:

  • media_id is the unique identifier for the media file to be downloaded.
  • Ensure a valid authentication token (X-Token) is provided in the request header.
  • The response will contain the binary content of the media file.

Responses

đŸŸĸ 200
json
{ "<media binary content>" }
🔴 404
json
{ "message" : "Not Found" }