# To connect the device and creating tags , Can I create it through API

**URL:** <https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125>\
**Category:** Ignition\
**Created:** [January 7, 2026, 2:59pm UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125 "2026-01-07T14:59:48Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [January 10, 2026, 10:54pm UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/21 "2026-01-10T22:54:07Z")

</div>

> [@liam2](#):
>
> API Documentation | Ignition User Manual

Have you succeeded in getting an API token and authenticating using that?

---

<div class="post-metadata">

**Author:** ![liam2](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@liam2](https://forum.inductiveautomation.com/u/liam2)\
**Post date:** [January 12, 2026, 3:19am UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/22 "2026-01-12T03:19:44Z")

</div>

I think I have done that correctly. I created the API Key in the gateway. Stored it securely. Then used it in Postman. I have tried a key that requires secure connections and one that doesn’t.

I am using Postman:

- POST HTTP request
- [http://localhost:8088/data/api/v1/tags/import](http://localhost:8088/data/api/v1/tags/import) as the url
- X-Ignition-API-Token as the custom header/authorisation key. My API Key as the value.
- Body is set to raw JSON
- I have exported tags from a project into a JSON file. Then copied that text into my JSON body of my Postman request.
- I have tried filling out the Params that are required in the API documentation too.

I am getting a HTTP ERROR 401 Unauthorized.

Any help is much appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [January 12, 2026, 4:06am UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/23 "2026-01-12T04:06:18Z")

</div>

Unauthorised would suggest that you don't have the token set up quite right. Can you screenshot the postman settings you use?

---

<div class="post-metadata">

**Author:** ![liam2](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@liam2](https://forum.inductiveautomation.com/u/liam2)\
**Post date:** [January 13, 2026, 3:15am UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/24 "2026-01-13T03:15:04Z")

</div>

Here’s my Postman settings. Please let me know what I’m doing wrong thanks.

 ![2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/1/31e9a1eecd7c588c023a8416a9f2d9d1e6ee75b7.png)

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

 ![5](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b9c4d228deeddc700851bce9e2d5d2707d1f1ffc.png)

---

<div class="post-metadata">

**Author:** ![liam2](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@liam2](https://forum.inductiveautomation.com/u/liam2)\
**Post date:** [January 13, 2026, 3:15am UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/25 "2026-01-13T03:15:38Z")

</div>

![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c229a4647662595f39ebffd7285f84316c0e0d51.png)

 ![4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/3665dcffc4ff1fa52419c26904c5982c1aa73354.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [January 13, 2026, 8:05am UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/26 "2026-01-13T08:05:48Z")

</div>

So you are validating SSL certificates on a non SSL connection? Is this intentional? Maybe remove any SSL or HTTPS settings and try it and see if its the same error? 401 suggests missing authentication.

---

<div class="post-metadata">

**Author:** ![liam2](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@liam2](https://forum.inductiveautomation.com/u/liam2)\
**Post date:** [January 13, 2026, 8:50pm UTC](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125/27 "2026-01-13T20:50:28Z")

</div>

Whoops I was copying the API Key wrong. I was copying the part that came after “API\_Key\_Name:” thinking that part wasn’t included. After using the right API key I got a 403 forbidden error. I just had to allow authenticated users to be able to write to the gateway and that resolved it. All working now. Thanks heaps for your guidance! Sorry I’m a noob

[Previous page](https://forum.inductiveautomation.com/t/to-connect-the-device-and-creating-tags-can-i-create-it-through-api/113125.md?page=1)
