The key code is XF86AudioMicMute which you can bind in you i3 config to mute the microphone.
The command to mute the current default microphone should be
pactl set-source-mute @DEFAULT_SOURCE@ toggle
(Maybe, I didn’t test it and adapted from the Arch wiki.)