def get_deposition_url(sandbox: bool):
    """Get the Zenodo API URL for requesting an upload. The URL depends on whether the sandbox
    or live version of Zenodo is being used."""
    if sandbox:
        api_base_url = 'https://sandbox.zenodo.org/api/'
    else:
        api_base_url = 'https://zenodo.org/api/'
    depositions_url = f'{api_base_url}deposit/depositions'
    return depositions_url