Allow passing of api_key to add_app