type api works