# Creating user via API

**URL:** <https://meta.discourse.org/t/creating-user-via-api/36133>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [November 29, 2015, 8:18pm UTC](https://meta.discourse.org/t/creating-user-via-api/36133 "2015-11-29T20:18:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vikas027](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikas027/32/121352_2.png) [@vikas027](https://meta.discourse.org/u/vikas027)\
**Post date:** [December 22, 2016, 12:55pm UTC](https://meta.discourse.org/t/creating-user-via-api/36133/4 "2016-12-22T12:55:53Z")

</div>

> [@blake](#):
>
> you will need to make another api request to this endpoint to approve them:
> 
> [http://localhost:3000/admin/users/&lt;user\_id&gt;/approve](http://localhost:3000/admin/users/&lt;user_id&gt;/approve)

Hello @blake,

Can you please give an example? I tried using this in vain.

```sh
curl -X PUT "http://localhost:3000/admin/users/batman/approve?api_key=<my_api_key>&api_username=vikas"

```

---

_[View the full topic](https://meta.discourse.org/t/creating-user-via-api/36133)._
