Docs
Skip to content
post

Create account

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/account

Description

Required scopes

sessions.write

Authentication

Initialize the Appwrite client with setProject(). No signed-in user or server API key is required.

Rate limit

Up to 10 requests per hour for each IP address calling this endpoint.
Server API key requests bypass this rate limit.

Parameters

string
Required
string
Required
string
Required
string
Status
Content type
201
application/json

User

Name
Type
Description
string
string
string
string
string
string
object
string
boolean
arrayof string
string
string
string
boolean
string
boolean
boolean
boolean
boolean
boolean
boolean
object
arrayof Target

Object type

string
boolean
string
JavaScript
import { Client, Account } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
const account = new Account(client);
const result = await account.create({
userId: '<USER_ID>',
email: 'email@example.com',
password: 'password',
name: '<NAME>' // optional
});
console.log(result);