Updated endpoint to handle the new secret layer.