album.download.status
bearer / PAT
Get owner album download availability
Read-only status of both complete owner ZIP variants. Never starts preparation and never exposes private storage identity.
Parameters
Passed by name in the params object.
| Name | Type | Required | Description |
|---|---|---|---|
album_id |
string | yes |
Result
Returns DownloadChoices:
| Field | Type | Description |
|---|---|---|
enabled * |
boolean | |
variants * |
array<DownloadChoice> |
Errors
| Code | Message | When |
|---|---|---|
2001 |
not_found |
No such resource owned by the caller. |
2002 |
validation_failed |
Malformed request; see error.data. |
2006 |
download_not_ready |
The authorized download is unavailable; see error.data.state and check download status before requesting a fresh link. |
See the error reference for the full catalog, including the authentication codes.
Example
Request:
{
"jsonrpc": "2.0",
"id": 1,
"method": "album.download.status",
"params": {
"album_id": "018f3a80-1c2d-7e00-9a00-0b1c2d3e4f50"
}
}
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"enabled": true,
"variants": [
{
"variant": "screen",
"state": "ready",
"filename": "Trip-screen.zip",
"format": "zip",
"size_bytes": 10485760,
"file_count": 20
},
{
"variant": "full",
"state": "preparing",
"file_count": 20,
"pending_count": 2
}
]
}
}
curl
curl -s https://peinture.gumeniuk.com/rpc \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"album.download.status","params":{"album_id":"018f3a80-1c2d-7e00-9a00-0b1c2d3e4f50"}}'
JavaScript
const res = await fetch("https://peinture.gumeniuk.com/rpc", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`,
},
body: JSON.stringify({
jsonrpc: "2.0", id: 1, method: "album.download.status", params: {"album_id":"018f3a80-1c2d-7e00-9a00-0b1c2d3e4f50"},
}),
});
const { result, error } = await res.json();
Go
body := []byte(`{"jsonrpc":"2.0","id":1,"method":"album.download.status","params":{"album_id":"018f3a80-1c2d-7e00-9a00-0b1c2d3e4f50"}}`)
req, _ := http.NewRequest("POST", "https://peinture.gumeniuk.com/rpc", bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+token)
resp, err := http.DefaultClient.Do(req)