# Create user with API

**URL:** <https://forum.mattermost.com/t/create-user-with-api/17307>\
**Category:** Troubleshooting\
**Created:** [November 14, 2023, 12:12pm UTC](https://forum.mattermost.com/t/create-user-with-api/17307 "2023-11-14T12:12:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidS2L](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@DavidS2L](https://forum.mattermost.com/u/DavidS2L)\
**Post date:** [November 14, 2023, 12:12pm UTC](https://forum.mattermost.com/t/create-user-with-api/17307/1 "2023-11-14T12:12:08Z")

</div>

Hello there,

I’ve used Mattermost since version 7.1 and I was able to create users using the API with the following payload:

```auto
{
	"email":"first_last@domail.tld",
	"username":"first_last_domail.tld",
	"first_name":"FirstName",
	"last_name":"LastName",
	"nickname":"ThisIsMyNick",
	"password":"password4mattermost"
}

```

I’ve updated to the most recent version of Mattermost and now I’m unable to create users. This is the error returned:

```auto
{
	"id":"api.user.create_user.signup_email_disabled.app_error",
	"message":"Inscri\u00e7\u00e3o com e-mail est\u00e1 desativada.",
	"detailed_error":"",
	"request_id":"y4jdsoqitpd9fc5bbwwp4ojpwo",
	"status_code":501
}

```

I went into the System Console-\>Authentication-\>Signup and enabled “Enable Account Creation”.  
After this i get this error message:

```auto
{
	"id":"api.user.create_user.no_open_server",
	"message":"Este servidor n\u00e3o permite inscri\u00e7\u00f5es abertas. Por favor, fale com o seu Administrador para receber um convite.",
	"detailed_error":"",
	"request_id":"5q9i1b8a6bbuf83hout88ibfta",
	"status_code":403
}

```

I didn’t change my server configuration and don’t want to open my server to the internet, I just want to be able to create new users through the API.

What can I do to overcome this?

Server Details:

```auto
Mattermost Version: 9.2.2
Database Schema Version: 113
Build Number: 6801073174
Database: mysql

```

Thanks,  
David
