# Openapi: 401 Unauthorized trying to import tags

**URL:** <https://forum.inductiveautomation.com/t/openapi-401-unauthorized-trying-to-import-tags/116087>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 21, 2026, 4:46pm UTC](https://forum.inductiveautomation.com/t/openapi-401-unauthorized-trying-to-import-tags/116087 "2026-06-21T16:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [June 21, 2026, 4:46pm UTC](https://forum.inductiveautomation.com/t/openapi-401-unauthorized-trying-to-import-tags/116087/1 "2026-06-21T16:46:24Z")

</div>

I'm trying to import some tags to an Ignition 8.3.7 using Python requests library: I generated an API key in the gateway and my call is:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/b/db1af1e87a90de5e3c85c44786755256a346ad44.png)

I set also

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/4/24e9b977fb41bc0c339fb78ccea2276366f58aba.png)

The response is 401 unauthorized: what am I doing wrong?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [June 22, 2026, 7:01am UTC](https://forum.inductiveautomation.com/t/openapi-401-unauthorized-trying-to-import-tags/116087/2 "2026-06-22T07:01:31Z")

</div>

I forgot to uncheck

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9a7d56ddce84a6f4204c3da8357aaccef09c2360.png)

Now it works!
