Brand new to n8n. I have completed the beginners course. I am attempting my 1st API connection ever. So this is a “for dummies” question.
I am trying to access a server via HTTP. The API instructions given to me provide me with an API Key that has an owner. The instructions tell me to pass the key with every HTTP request. And I have no idea how to do that. I have tried basic auth, header auth and query auth. The other credentials require additional info I have not been supplied.
Each time the post query fails - Valid API key is required.
Instructions say
The HTTP requests should be in the following format:
POST https://api.*******
Host: api.******.com
Connection: keep-alive
Content-Length: 134
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/66.0.3359.181 Safari/537.36
Content-type: application/json
Accept: text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.5
{
"key":"[Your api key]",
"searchString":"",
"limit":100,
"offset":0,
"sortOrder":"DESC"
}
I am struggling to translate this into the HTTP node.