api access check