Preheat the oven to 425°F with a rack in the middle.
Spatchcock the chicken: "Spatchcocking" means removing the backbone so the chicken lies flat, so it cooks faster and more evenly with more crispy skin. Place the chicken breast-side down on a large cutting board, tail end facing you. Using sharp kitchen shears, cut along both sides of the backbone from the tail toward the neck and remove it (keep it if you'd like to roast it for extra flavor). Flip the chicken breast-side up and press firmly on the center of the breast with the heels of your hands until it cracks and lies flat. Tuck the wing tips behind the breasts so they don't burn. Pat the chicken very dry with paper towels. Shortcut: ask your grocery store butcher to spatchcock it for you.
Season the chicken: Slide your fingers under the skin over the breasts and thighs to gently loosen it without tearing. Rub the chicken all over with 1 tablespoon avocado oil. Generously season with kosher salt, black pepper, and your garlic-and-herb blend under the skin directly on the meat, over the skin, and on the underside. If your blend contains salt, use a little less kosher salt. No advance brining is needed. Wash your hands, cutting board, and shears with hot, soapy water after handling raw chicken.
Prepare the onions: Add the diced onions directly to the sheet pan. Drizzle with 4–5 tablespoons avocado oil, sprinkle with 1½ teaspoons kosher salt, and pour in ⅓ cup water. The water helps the onions soften before they brown, so they don't scorch early. Toss to coat, then spread them in an even layer toward the center of the pan, leaving a little space around the edges. Scatter the thyme sprigs over the top.
Set the wire rack over the onions and place the chicken skin-side up on the rack. Add the backbone to the rack too if you'd like. Roast at 425°F for about 45–60 minutes for a 4–4½ lb chicken.
After 30 minutes, check the onions, especially around the edges. If they're getting dark, add a splash of water (about ¼–½ cup), pouring it mostly around the edges to loosen the browned bits. Check every 10–15 minutes and repeat as needed. Add a little at a time so the water evaporates and the onions caramelize instead of boiling. A few dark edges are fine and add flavor; just avoid anything black. The drippings from the chicken will fall onto the onions and give them a rich, savory flavor.
The chicken is done when an instant-read thermometer reads 165°F in the thickest part of the breast and about 175°F in the thickest part of the thigh, without touching the bone.
Using oven mitts, remove the pan and carefully move the chicken to a cutting board to rest. Resting keeps the juices in the meat. Remove the rack, backbone (if using), and thyme stems. If there's a lot of fat pooled in the pan, spoon some off, leaving about 2–3 tablespoons. Reduce the oven to 400°F.