api halt is not authorized