Create Account
Endpoint
posthttps://<REGION>.cloud.appwrite.io/v1/account
Description
Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the /account/verfication route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new account session.
Required scopes
Authentication
setProject(). No signed-in user or server API key is required.Rate limit
Parameters
Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
User email.
User password. Must be at least 8 chars.
User name. Max length: 128 chars.
User
User ID.
User creation date in Unix timestamp.
User update date in Unix timestamp.
User name.
User registration date in Unix timestamp.
User status. Pass true for enabled and false for disabled.
Unix timestamp of the most recent password update
User email address.
User phone number in E.164 format.
Email verification status.
Phone verification status.
User preferences as a key-value object Can be one of: preferences
import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport kotlinx.coroutines.GlobalScopeimport kotlinx.coroutines.launchimport io.appwrite.Clientimport io.appwrite.services.Account
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main)
val client = Client(applicationContext) .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID
val account = Account(client)
GlobalScope.launch { val response = account.create( userId = "[USER_ID]", email = "email@example.com", password = "password", ) val json = response.body?.string() } }}Account
Create Account
Endpoint
posthttps://<REGION>.cloud.appwrite.io/v1/account
Description
Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the /account/verfication route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new account session.
Required scopes
Authentication
setProject(). No signed-in user or server API key is required.Rate limit
Parameters
Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
User email.
User password. Must be at least 8 chars.
User name. Max length: 128 chars.
User
User ID.
User creation date in Unix timestamp.
User update date in Unix timestamp.
User name.
User registration date in Unix timestamp.
User status. Pass true for enabled and false for disabled.
Unix timestamp of the most recent password update
User email address.
User phone number in E.164 format.
Email verification status.
Phone verification status.
User preferences as a key-value object Can be one of: preferences
import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport kotlinx.coroutines.GlobalScopeimport kotlinx.coroutines.launchimport io.appwrite.Clientimport io.appwrite.services.Account
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main)
val client = Client(applicationContext) .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID
val account = Account(client)
GlobalScope.launch { val response = account.create( userId = "[USER_ID]", email = "email@example.com", password = "password", ) val json = response.body?.string() } }}