Pat the chicken legs dry with kitchen towels or paper towels and place them in a large bowl.
In a small bowl, combine the salt, black pepper, chili powder, oregano, garlic powder, and onion powder to make the spice blend.
Drizzle the olive oil over the dried chicken, then sprinkle the spice blend evenly and toss the drumsticks until well coated.
Preheat the air fryer to 400°F (204°C).
Arrange the chicken legs in a single layer in the air fryer basket, leaving space between pieces; work in batches if needed.
Cook for 20 minutes total, flipping the drumsticks after 10 minutes to promote even browning and crisping.
When the skin is crisp and the internal temperature reaches 165°F (74°C), remove the chicken and let rest a few minutes before serving.
Serve the drumsticks warm with optional lime wedges, avocado, tomatoes, salsa, or guacamole if desired.