Get a download URL
get_download_urlMint a short-lived signed URL for one build — the newest held unless you pass an apkId from list_versions. Costs 10 credits — the most expensive call here, and the only one that hands over a file. Check get_version_security before handing anything to a person. The URL expires in about 5 minutes; fetch it promptly and do not store it. The response carries the file's sha256 — verify what you downloaded against it, because the signature is on the URL and not on the bytes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"packageName": "<packageName>"
},
"name": "get_download_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkId | No | A specific build from list_versions. Omit for the newest one. | |
| variantId | No | Optional: an on-demand variant build of that release, from get_variant_status. It is served under the ordinary build's checks; omit it for the ordinary build. | |
| packageName | Yes | Android package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Signed URL, valid about 5 minutes. Fetch it before it expires. | |
| apkId | Yes | The artifact that was minted. | |
| format | No | 'apk', 'xapk' or 'apks' — the container `url` serves. | |
| sha256 | Yes | SHA-256 of the file this URL serves, lowercase hex. Verify the download against it. | |
| appName | Yes | The app's display name. | |
| fileSize | No | Bytes. | |
| expiresAt | Yes | When `url` stops working. | |
| variantId | No | Present when an on-demand variant build was minted; `fileSize` and `sha256` are then the variant's. | |
| packageName | Yes | Package this file belongs to. | |
| versionCode | No | Build number of the minted build. | |
| versionName | No | Version string of the minted build. |