api detached