# Is there way to create/generate api token?

**URL:** <https://forum.inductiveautomation.com/t/is-there-way-to-create-generate-api-token/109761>\
**Category:** Ignition 8.3 Early Access\
**Tags:** ignition83\
**Created:** [August 14, 2025, 9:28am UTC](https://forum.inductiveautomation.com/t/is-there-way-to-create-generate-api-token/109761 "2025-08-14T09:28:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 14, 2025, 3:41pm UTC](https://forum.inductiveautomation.com/t/is-there-way-to-create-generate-api-token/109761/5 "2025-08-14T15:41:35Z")

</div>

> [@raj.burnwal](#):
>
> I need to automate db connection setup after generating api key.

If you want to 'preconfigure' a gateway with an API key, you can store one in the `external` resource collection, as mentioned in the post @Sfenwick linked:

> [@Ignition 8.3 API Usage Guide (via Postman)](https://forum.inductiveautomation.com/t/ignition-8-3-api-usage-guide-via-postman/93935/1):
>
> #### Some Important Notes
> 
> - \*\ ***Protip** : Copy the generated token resource files from `data/config/CORE/ignition/api-token` into `data/config/EXTERNAL/ignition/api-token` which sits at a higher inheritance level than core as resources in core may be deleted at will during testing and development 🙂 (ie. see the "Retriggering Migration" section down below).
> - **A gateway restart is required after this since resource files have been affected directly on the filesystem** (or alternatively run the _Config Sync Request_ route) so that the system will pick up the new resource changes on the filesystem.
> - Any gateway config resource that is edited directly on the filesystem does not automatically picked up unless the _Config Sync Request_ route is called which prompts the gateway to sync changes immediately.

Note that this same principle can be applied a layer higher. If you want to preconfigure a gateway connection - you can do the exact same thing (move a configured resource to the `external` collection) but with your configured DB connection.

---

_[View the full topic](https://forum.inductiveautomation.com/t/is-there-way-to-create-generate-api-token/109761)._
