Adjust rack to middle position and preheat the oven to 425°F.
In small bowl, mix together the garlic powder, smoked paprika, cumin, cardamom, and a generous grinding of freshly ground black pepper until well-combined.
Season chicken. In a large bowl, mix about 2/3 of the spice mixture with olive oil. Add chicken pieces and a generous amount of Kosher salt (I used about 2 ½ teaspoons of Diamond Crystal Kosher Salt for 8 pieces of chicken) and mix to combine until evenly coated.
Make the base of the sauce. In a blender, combine the garlic, ginger, tomato paste, Dijon, a generous amount of Kosher salt (I used 2 teaspoons for 8 pieces of chicken), freshly ground black pepper, chicken stock, and the remaining spice mixture. Blend well.
In a large baking dish, scatter the onions over the bottom. On top of the onions, scatter the dried thyme, red pepper flakes, saffron threads, preserved lemon, olives, and apricots. Add the bay leaf and pour the blended sauce over the onion mixture. Add the chicken pieces, skin side up.
Bake for 1 hour, until chicken is cooked through, skin is crispy, and sauce has thickened slightly.
Taste sauce and season with more salt and freshly ground black pepper. If desired, sprinkle with toasted pine nuts and fresh parsley and serve.