API preparation