create¶
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.
Usage Example¶
extends Node
func _ready():
# You can skip setup if you have .env
Appwrite.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
Appwrite.set_project('<YOUR_PROJECT_ID>') # Your project ID
var result = await Appwrite.account.create(
'<USER_ID>',
'email@example.com',
'password',
'<NAME>' # optional
)
if result is AppwriteException:
push_error(result.message)
if result is AppwriteUser:
print(result.to_dict())