Dataset - send bearer token as header

I would like to use the datasets more to pull in information, but keep running into roadblocks.

The API I’m querying requires submitting user/pass to get back an auth token. That part I have figured out. I get the token and expiry time and put it in a database.
Now, I need to put the bearer token into a header to authenticate and get the info I want. I know it works from postman, command line and PowerShell. How do I get the bearer token into the header line? {{col.name}} doesn’t work, only sending that text to the API server. The curl line is:

curl -X POST “https://api.server/data/aggregates/stuff/GET/v1” -H “accept: application/json” -H "authorization: Bearer "-H “Content-Type: application/json” -d “[ { "date_ranges": [ { "from": 2023-11-14T00:00:00Z", "to": "2023-11-15T15:00:00Z" } ] }]”

Is it possible to use the Data line to send info to curl for the header, or is there another way to send the info to curl to ingest?