updated my __init__ to include api_key validation for all api endpoints