def get_schedules(api, params=None):
    """
    Get all schedules for user.
    
    :type api: :class:`mortar.api.v2.api.API`
    :param api: API
    
    :raises: requests.exception.HTTPError: if a 40x or 50x error occurs
    
    :rtype: dict:
    :returns: schedules
    """
    return api.get('schedules', params)
