# Disable account confirm emails when creating users via API

**URL:** <https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [23 augustus 2017 om 23:18 UTC](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663 "2017-08-23T23:18:20Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![skodali](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@skodali](https://meta.discourse.org/u/skodali)\
**Post date:** [4 december 2017 om 21:40 UTC](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663/22 "2017-12-04T21:40:05Z")

</div>

I am still having issues creating user accounts using the API. Here are the params I am passing to create the user

```
$params = array(
            'name' => $user_details['name'],
            'username' => $user_details['username'],
            'email' => $user_details['email'],
            'password' => $user_details['password'],
            'challenge' => $api_keys->challenge,
            'password_confirmation' => $api_keys->value,
            'active' => 'true',
            'approved' => 'true',
            );

```

The user is being successfully create and no email is being sent. But when I try to login using the account created I am getting the following error message.  
You can’t log in yet. We previously sent an activation email to you at \*_ **@** _.org. Please follow the instructions in that email to activate your account. Do I have to change any other settings on the admin? Any help is appreciated.

---

_[View the full topic](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663)._
