The key wouldn’t be an array, but the value can be.
However, this looks strange.
Are you sure this needs to go into the headers, and not the body?
Do you have details on the API you can share?
Ideally the API specification\documentation as that will determine how this needs to be done.