Most API endpoints require authentication via API key. Provide your key as a query parameter ?key=YOUR_KEY or use session-based login for web interface.
Returns a list of all files and folders (recursive) in storage.
🔒 Requires authentication
curl "https://aidjmusicapi.purpuldigital.com/?action=list&key=YOUR_KEY"
Returns a nested tree structure of files and folders.
🔒 Requires authentication
curl "https://aidjmusicapi.purpuldigital.com/?action=tree&key=YOUR_KEY"
Download or stream a specific file with CORS headers applied.
🔒 Requires authentication
Parameters:
file – Relative path to the file (e.g. Folder/Song.mp3)key – Your API keycurl "https://aidjmusicapi.purpuldigital.com/?action=download&file=Folder/Song.mp3&key=YOUR_KEY"
Returns storage statistics: file count, folder count, total size (recursive).
🔒 Requires authentication
curl "https://aidjmusicapi.purpuldigital.com/?action=analysis&key=YOUR_KEY"
Search files/folders with pagination, sorting, and filtering.
🔒 Requires authentication
Parameters:
q – search term (if empty, returns random results)page – page number (default: 1)limit – results per page (default: 20, max: 100)sort – field to sort by: name (default), size, modifiedorder – asc or desc (default: asc)curl "https://aidjmusicapi.purpuldigital.com/?action=search&q=document&page=2&limit=10&key=YOUR_KEY"
Returns download URLs for native app installers across different platforms.
🔓 Public endpoint - No authentication required
This endpoint scans the apps/ directory (same level as storage/) and automatically detects platform-specific installers based on file extensions and naming patterns.
Response Format:
{
"android": "http://your-domain.com/assets/apps/app.apk",
"ios": "http://your-domain.com/assets/apps/app.ipa",
"windows": "http://your-domain.com/assets/apps/setup.exe",
"macos": "http://your-domain.com/assets/apps/app.dmg",
"linux": "http://your-domain.com/assets/apps/app.AppImage"
}
Supported File Types:
.apk files.ipa files.exe, .msi files.dmg, .pkg files, or files with "mac" in the name.AppImage, .deb, .rpm files, files with "linux" in the name, or executable binaries without extensionsUsage Example:
curl "https://aidjmusicapi.purpuldigital.com/?action=downloads"
Setup Instructions:
apps/ directory in the same location as this script (same level as storage/)null⚠️ Note: This endpoint is public and does not require authentication. Ensure your app installers are intended for public distribution.