Using constants in apis