Preheat the Oven: Preheat your oven to 375°F (190°C). Lightly grease a baking dish or line it with foil for easier cleanup.
Prepare the Apricot Sauce: In a medium bowl, whisk together the apricot jam, finely diced onions, soy sauce, honey, Dijon mustard, apple cider vinegar, minced garlic, ground ginger, and red pepper flakes (if using). Stir until the sauce ingredients are well combined.
Prepare the Chicken: Using paper towels, gently dry the chicken thighs and season them with a pinch of salt and pepper. Arrange the chicken thighs in a single layer within the prepared baking dish.
Coat the Chicken: Spoon the prepared apricot sauce over the chicken thighs, ensuring that each piece is thoroughly covered.
Bake the Chicken: Place the dish in the preheated oven and bake for 35-40 minutes, or until the chicken reaches an internal temperature of 165°F (74°C) and the skin (if using bone-in, skin-on thighs) is golden and crispy. You can baste the chicken with the sauce halfway through baking to ensure even flavor distribution.
Broil for a Crispy Finish (optional): If you want the chicken skin to be extra crispy, turn the oven to broil for the last 3-5 minutes of cooking.
Garnish and Serve: After the chicken is cooked, take it out of the oven and allow it to rest for several minutes. Top it with freshly chopped parsley to add a vibrant touch and enhance the flavor. Pair with rice, couscous, or roasted vegetables to absorb the tasty sauce.