Downloads API¶
Endpoints for generating download URLs and share links.
Get Download URL¶
Generate a pre-signed URL to download a file.
Query Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
applicationId |
string | Yes | The application ID |
version |
string | Yes | The version string |
fileId |
string | No | Specific file ID (for multi-file versions) |
URL Expiration
Download URLs expire after 30 minutes. Generate a new URL if the download doesn't complete in time.
Example Request¶
Example Response¶
{
"success": true,
"data": {
"downloadUrl": "https://s3.eu-central-1.amazonaws.com/bindist-apps/...",
"expiresAt": "2025-01-15T12:30:00Z",
"fileName": "my-app-2.1.0.exe",
"fileSize": 15728640,
"checksum": "sha256:e3b0c44298fc1c149afbf4c8996fb924..."
}
}
Downloading the File¶
Use the pre-signed URL to download directly:
Error Responses¶
Version Not Found (404)
Tier Access Denied (403)
{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "This version requires Premium tier access"
}
}
Create Share Link¶
Create a shareable download link that can be used without authentication.
Request Body¶
| Field | Type | Required | Description |
|---|---|---|---|
applicationId |
string | Yes | The application ID |
version |
string | Yes | The version string |
fileId |
string | No | Specific file ID |
expiresInMinutes |
number | No | Expiration time (default: 30, max: 1440) |
Example Request¶
Example Response¶
{
"success": true,
"data": {
"shareUrl": "https://api.bindist.eu/v1/downloads/share/tok_abc123xyz",
"expiresAt": "2025-01-15T13:00:00Z",
"token": "tok_abc123xyz"
}
}
Use Cases for Share Links
- Send download links to users without API keys
- Embed in emails or documentation
- Time-limited access for testing or demos