# How to programmatically generate user api key

**URL:** https://meta.discourse.org/t/how-to-programmatically-generate-user-api-key/151738
**Category:** Development
**Created:** [May 17, 2020, 7:20am UTC](https://meta.discourse.org/t/how-to-programmatically-generate-user-api-key/151738 "2020-05-17T07:20:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 17, 2020, 4:25pm UTC](https://meta.discourse.org/t/how-to-programmatically-generate-user-api-key/151738/2 "2020-05-17T16:25:52Z")

</div>

You can follow my example at [Generating User API Keys for testing](https://meta.discourse.org/t/generating-user-api-keys-for-testing/145744)

---

_[View the full topic](https://meta.discourse.org/t/how-to-programmatically-generate-user-api-key/151738)._
