get_download_urlScope: library:downloadGet Download URL
Generate a secure, short-lived signed 15-minute S3/Cloudflare R2 download URL for the complete primary asset package.
Description
Get Download URL generates a cryptographically signed, time-limited storage URL (hosted across AWS S3 and Cloudflare R2 multi-region storage edge) to download the primary archive (.zip) of an owned asset. The endpoint enforces zero-trust security: before issuing the signed URL, it verifies that the caller's token possesses the library:download scope and that the authenticated user holds an active entitlement record. Signed URLs expire strictly after 15 minutes (900 seconds) to prevent link forwarding and unauthorized public distribution while ensuring rapid, CDN-accelerated download bandwidth.
Signed URLs expire in 15 minutes. Coding agents should immediately initiate the HTTP download or file stream into the project workspace upon receiving the URL.
Input Arguments
1 parameters| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| assetId | string | Required | — | The unique catalog asset identifier to generate a download link for. |
Request Example
{
"jsonrpc": "2.0",
"id": "call_08",
"method": "tools/call",
"params": {
"name": "get_download_url",
"arguments": {
"assetId": "ast_neon_matrix"
}
}
}Response Schema Example
{
"assetId": "ast_neon_matrix",
"downloadUrl": "https://storage.trykrafto.xyz/bundles/ast_neon_matrix.zip?X-Amz-Signature=89f3a...",
"expiresAt": "2026-03-13T18:15:00Z",
"fileSizeBytes": 1458920,
"fileName": "neon-matrix-display.zip"
}