Prepare a 7 or 8 inch cake pan by greasing well and coating with flour.
Whisk together flour, sugar, cocoa powder, baking soda, baking powder and salt until well blended.
In a separate bowl whisk together egg, buttermilk, vegetable oil and water.
Add egg mixture to flour and stir until just combined. Add in boiling water and mix to combine.
Pour into prepared cake pan
Cook in air fryer at 320º F for 25 minutes. Use a toothpick to test if the cake is done, it should come out mostly clean when you insert it into the center of the cake.
Once the cake is baked carefully remove the pan from the air fryer and cool on a wire rack for 10 minutes before removing the cake from the pan to cool completely.
Once the cake is cooled frost and decorate as desired.
To Make Frosting
Using a hand mixer or the whisk attachment for an electric stand mixer whip butter until it is smooth and creamy.
Add powdered sugar, cocoa powder, and salt until it is combined.
Add vanilla and slowly pour in milk, beating until it is smooth and your desired consistency.
Adjust milk or sugar as necessary if your frosting is to thick or thin.