API setup