Preheat your air fryer to 325°F (163°C).
In a large mixing bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda, and salt.
In another bowl, whisk together the buttermilk, vegetable oil, egg, and vanilla extract.
Gradually add the wet ingredients to the dry ingredients, mixing until well combined.
Stir in the boiling water until the batter is smooth. It will be thin, but that's okay.
Pour the chocolate cake batter into a greased and lined 7-inch springform pan.
Place the pan in the preheated air fryer basket and cook for about 20-25 minutes or until a toothpick inserted into the center comes out clean.
Remove the cake from the air fryer and let it cool completely.