prepared api