Preheat air fryer to 360 degrees.
In a small bowl mix together the garlic powder, onion powder, oregano, paprika, salt and pepper.
Rub seasoning all over the chicken. Add the onion and garlic to the chicken cavity.
Spray air fryer basket with no-stick cooking spray. Place the chicken in the air fryer, breast side down. Spray the chicken with olive oil cooking spray (5 pumps).
Cook for 30 minutes, then flip the chicken so it's breast side up and cook 30 more minutes. Check that the chicken is 165 degrees. Let rest for 5 minutes, then serve.