checking retention api code