# Generating User Api Keys with REST API

**URL:** <https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [May 1, 2017, 10:55pm UTC](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916 "2017-05-01T22:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![djensen47](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/djensen47/32/120547_2.png) [@djensen47](https://meta.discourse.org/u/djensen47)\
**Post date:** [November 9, 2017, 6:35pm UTC](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916/9 "2017-11-09T18:35:48Z")

</div>

Thanks @j.jaffeux. I was drafting a similar message but I only had the code from the mobile app. These other code snippets are very useful.

When I tried this API against my own server using Postman, I kept getting a 400 error with no details. My Ruby is a little rusty but I’ll dig into the code more _but_ if you happen to know why a 400 might happen that would be helpful.

---

_[View the full topic](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916)._
