The more common arrangement for a "2-way" switch system for one light is to have power from the source (breaker panel) supplied at the first switch and the light fixture connected at the second switch. One cable runs between the two switches with THREE current-carrying wires (14/3, Black White and Red)). Each switch is a single-pole double-throw switch, so it connects a Common terminal (connected to the Black Hot line from the source) to either one or the other of the output terminals. Those two connect to the Black and Red of the 14/3 cable (these two lines often are called the Trailer leads), and the source Neutral White line connects to White on the 14/3. At the second switch box the incoming White connects to the White of the 14/2 cable going out to the lamp. The incoming Black and Red connect to the two "output" terminals (in this case, now inputs) of the switch, and the Common of the switch connects to the Black Hot output line to the lamp. So the first switch selects which of the Red or Black wires of the 14/3 cable carries power up to the second switch. Then the second switch selects which of those two is fed on to the lamp. Meanwhile the White Neutral line from the source is connected through to the lamp directly.
On many smart "2-way" switches there are FIVE leads. Whatever you have, DO follow the included instructions on how to connect carefully. Do NOT simply try to copy old colour-to-colour of wires. The switches will have colour-coded wires for Neutral (white wire), Ground (Green wire for bare Grounding wire from the cables), a Load or Common wire (often red) and two lines marked Line1 and Line 2, or maybe Line and Trailer or something similar.
There is a different type of circuit layout in which the lamp is connected to wires in the FIRST switch's box, and the 14/3 cable simply runs to the second box and its switch. There is no lamp connected to the second switch. This layout uses the White wire of the 14/3 cable to return to the first box (and on to the lamp Black Hot wire) the power output of the second switch, so that White actually is used as a Hot wire. Where this is allowed by code that White is supposed to be wrapped in black electrical tape to alert the user that this is NOT really a Neutral wire. But that means that there is NO actual Neutral wire connection at the second switch box, and most smart switches need a neutral connection. So using a smart switch in this case requires a slightly different set of connections unless you replace the 14/3 cable with a 14/4 cable to provide Hot, Neutral, and TWO independent Load lines. IF your circuit is laid out this way, consult the Tech Support people for your switch to be sure you know how to install.