How to include an API key in a GET/POST request [SIM7020]

Hi, I have a SIM7020 shield for the raspberry pi pico and I need to make get and post requests to a endpoint that requires an API key for validation. I’ve tried to add the API to the header, and a few other things but this doesn’t seem to work. Could anybody steer me in the right direction for this?

this is the request I’d like to make in a get request:

str_to_send = f"AT+CHTTPSEND=0,0,\"/testGET/?deviceId={device_id}\",{str_to_hexStr(header)}"

and this is the header:

header = f"""
API: {API}
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Greetings Mike