User files
Download a user file by name.
Binary response
This endpoint returns binary data. Handle the response as a stream or blob.
Request flow
Copy your public API key from the console output on first startup.
Authenticate with
POST /api/auth/user to get a JWT.Call
GET /api/user/files/:file with headers and save the file.Parameters and headers
Prop
Type
GET /api/user/files/:file
Authorization: <PUBLIC_API_KEY>
Token: <jwt_token>Content-Disposition: attachment; filename="original_filename.ext"
Content-Type: application/octet-stream
Content-Length: <file_size>Example request
curl -L "https://your-moonbase-host/api/user/files/your_file_name" \
-H "Authorization: <PUBLIC_API_KEY>" \
-H "Token: <jwt_token>" \
-o downloaded_file.ext