# SWAGGER authentication

**URL:** <https://discourse.nodered.org/t/swagger-authentication/82780>\
**Category:** General\
**Created:** [11 November 2023 06:19 UTC](https://discourse.nodered.org/t/swagger-authentication/82780 "2023-11-11T06:19:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 November 2023 09:45 UTC](https://discourse.nodered.org/t/swagger-authentication/82780/3 "2023-11-11T09:45:58Z")

</div>

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.

[How to import/export a flow](https://nodered.org/docs/user-guide/editor/workspace/import-export)

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 `````)

````auto
``` 
   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](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/swagger-authentication/82780)._
