Collect every ingredient. Brew the espresso or coffee, then measure the vodka, Kahlua, cocoa powder, and flavor extracts. If you like, coat martini glasses with crushed peppermint candy (refer to notes).
Load a cocktail shaker with ample ice. Incorporate all ingredients, pouring the hot espresso in last to prevent the ice from melting instantly.
Close the shaker and shake hard for 15–30 seconds. Sufficient aeration creates the foam on the final drink, so shake longer than you think necessary.
Filter into a glass (chilled if preferred), add garnish, and savor!