import requests


def minify(file_content:str) -> str:
    """Access Toptal's CSS Minifier API.
    
    Parameters
    ----------
    file_content : str
        CSS file content in str format.

    Returns
    -------
    str
        Minifier CSS in str format.

    """

    payload = {'input': file_content}
    url = 'https://www.toptal.com/developers/cssminifier/raw'
    r = requests.post(url, payload)
    return r.text