checkin api sketch