N.Y. Insurance Law § 1213
(b)
(1) Any of the following acts in this state, effected by mail or otherwise, by an unauthorized foreign or alien insurer:
(3) Service of process in any such proceeding shall in addition to the manner provided in paragraph two of this subsection be valid if served upon any person within this state who, in this state on behalf of such insurer, is:
(c)
(1) Before any unauthorized foreign or alien insurer files any pleading in any proceeding against it, it shall either: