def METHOD_NAME():
    """
    Recive events related to API recommendations feature.
    """
    data = request.data
    jsonData = json.loads(data[36:-4].decode("utf-8"))
    try:
        jwt_token = request.headers['X-JWT-Assertion']
        organization = get_company_from_jwt(jwt_token)
    except Exception:
        logger.debug("Error when extracting company details from JWT, default Company selected")
        organization = "Company"
    try:
        action = jsonData["action"]
        payload = jsonData["payload"]
        logger.debug("Recommendation event received with Action " + action)
        if (action == 'ADD_API'):
            response = add_API(payload, organization)
        elif(action == 'DELETE_API'):
            response = delete_API(payload, organization)
        elif(action == 'ADD_APPLICATION'):
            response = add_application(payload, organization)
        elif(action == 'DELETE_APPLICATION'):
            response = delete_application(payload, organization)
        elif(action == 'ADD_USER_SEARCHED_QUERY'):
            response = add_search_query(payload, organization)
        elif(action == 'ADD_USER_CLICKED_API'):
            response = add_clicked_API(payload, organization)
        else:
            logger.error("Incorrect action " + action + " used for recommendation event")
            response = Response(status=500)
    except Exception:
        logger.exception("Error occurred when adding the" + action + " event")
        response = Response(status=500)
    return response