Before you start, it's important to preheat your air fryer to 320 degrees Fahrenheit (160 degrees Celsius). This will ensure that your cake is evenly baked from the start.
Spray a small fluted tube pan with cooking spray to prevent sticking. This is a crucial step to ensure that your cake comes out cleanly from the pan when it's done baking.
In a large mixing bowl, beat together sugar and butter using an electric mixer until the mixture is light and creamy. Then, add in an egg and your preferred flavor of jam. Mix until all ingredients are well combined.
Sift in flour, cocoa powder, and salt into the batter and mix thoroughly. This will ensure that the cake has a consistent texture throughout.