# Cant create active user via api, Again

**URL:** https://meta.discourse.org/t/cant-create-active-user-via-api-again/185838
**Category:** Support
**Created:** [April 7, 2021, 6:04am UTC](https://meta.discourse.org/t/cant-create-active-user-via-api-again/185838 "2021-04-07T06:04:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [April 7, 2021, 6:04am UTC](https://meta.discourse.org/t/cant-create-active-user-via-api-again/185838/1 "2021-04-07T06:04:52Z")

</div>

This was [fixed long ago](https://meta.discourse.org/t/creating-user-via-api/36133/11) by @blake but in the newest version of discourse, 2.7.0.beta5, again I can’t create active users, without sending confirmation email, with api.

 ![Screenshot from 2021-04-07 10-34-32](https://global.discourse-cdn.com/meta/original/3X/9/c/9c616c48cd81cbd7c1153031fa82099664fb0423.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [April 8, 2021, 9:48pm UTC](https://meta.discourse.org/t/cant-create-active-user-via-api-again/185838/2 "2021-04-08T21:48:37Z")

</div>

Have you checked to see if an inactive user was actually created? It is possible that no user was created and you are getting an inaccurate error message. That is an issue that I saw recently on my own site.

I am able to create an active user on my site with the following curl request. I’ve set `$api_key` to a Global All Users API Key:

```plaintext
curl -X POST "http://localhost:3000/users.json" \
-H "Api-Key: $api_key" \
-H "Api-Username: system" \
-H "Content-Type: multipart/form-data;" \
-F "email=activeuser@example.com" \
-F "username=activeuser" \
-F "password=simplepass" \
-F "active=true" \
-F "approved=true"

```

The expected response for this request is `{"success":true,"active":true,"message":"Your account is activated and ready to use."}`
