Get somewhere to put a file
request_uploadAsk for a one-time address to upload a master, cover art, a logo or an artist photo to. You need the file's NAME, nothing else. Never ask the artist how big a file is. PUT the file to the address you get back, then call finalize_upload, which reads the file itself and checks the size, the format and the account's storage against it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| bytes | No | Optional. The size in bytes, IF you already know it: it saves a doomed upload. Never ask anyone for it. The server measures the file when it arrives. | |
| artist | No | Only when you are connected as a label: the roster artist this call is for — their artist_user_id from list_roster, or their exact artist name. Required for every artist tool on a label connection. Leave it out on an artist's own connection. | |
| album_id | No | ||
| filename | Yes | The file's own name, with its extension. Audio is .wav, .flac or .m4a; images are .png, .jpg or .webp. A release going out through Audora needs a .wav master (16/24-bit, 44.1 kHz, stereo) and a .jpg cover (square, 3000–6000 px, RGB). The others upload but cannot be released. | |
| track_id | No | Required for audio; for cover art, give this or album_id. | |
| mime_type | No |