You have to add the X-Api-key as a header.
You can do so in the http request node.
Or feed in msg.headers["X-Api-key"]
set to your api.
Can you supply the first curl, and a flow example of what you have tried.
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json