I am currently running API automation and am required to pass my API Key as well.
I am thinking I need to add this to my header EX: header={“x-apikey” : ‘key’} But I have tried this in numerous ways and it has failed… I am also thinking this can be added to the request body…
With RequestsLibrary you can easily do that.
In this file you can find examples how to set headers once for all the requests executed on the same session or how to set headers only for a specific request.
It’s probably best to start a new topic rather than trying to revive this 3 year old topic.
Also when you do, to get the best help, mention the library you are using what you’ve tried and what errors you are getting. the more information you give about the issue your facing the better the help you’ll get.