States api processing