def get_api_auth_headers(credentials):
    """
    Creates authorization headers for api auth

    :param credentials:
        User, key dict representing for creating api auth headers
    :return:
        dict with the headers required for api-auth
    """
    try:
        return {
            'ApiAuth-ApiUser': credentials["user"],
            'ApiAuth-ApiKey': credentials["key"]
        }
    except IndexError:
        raise ValueError("credentials should be an user, key dict")