Skip to main content
POST
create subaccount

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
email
string
required

User's email address

Maximum string length: 64
Pattern: ^(?!.*@vast)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Example:

"user@example.com"

username
string
required

Desired username

Maximum string length: 64
Example:

"testuser123"

password
string
required

Account password

Maximum string length: 256
Example:

"securepass123"

host_only
boolean

If true, account is restricted to host functionality only

Example:

true

parent_id
string

Parent account ID for subaccounts. Use "me" for current user.

Example:

"me"

ssh_key
string

Optional SSH public key

Maximum string length: 4096
captcha
string

Captcha token (required for non-subaccounts)

Maximum string length: 8192

Response

Account created successfully

id
integer

User ID

username
string
email
string
key_id
integer

API key for the new account