HTTP API Key question by a beginner

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.

Welcome to the community @Robm!

For that, we do actually not have an auth type, as it is actually quite uncommon. It expects that you send the data authentication data in the body. So it would look like this:

Here the example node:

{
  "nodes": [
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://api.*******",
        "options": {},
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "key",
              "value": "[Your api key]"
            },
            {
              "name": "searchString"
            },
            {
              "name": "limit",
              "value": "=100"
            },
            {
              "name": "offset",
              "value": "=0"
            },
            {
              "name": "sortOrder",
              "value": "DESC"
            }
          ]
        }
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        600,
        420
      ]
    }
  ],
  "connections": {}
}

Hope that is helpful!

That worked - and super fast support. Appreciated!

Glad to hear. Have fun!