add mode declaration endpoint