create subaccount
Accounts
create subaccount
Creates either a standalone user account or a subaccount under a parent account. Subaccounts can be restricted to host-only functionality.
CLI Usage: vastai create subaccount --email <email> --username <username> --password <password> [--type host]
POST
create subaccount
Documentation Index
Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key must be provided in the Authorization header
Body
application/json
User's email address
Maximum string length:
64Pattern:
^(?!.*@vast)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Example:
"user@example.com"
Desired username
Maximum string length:
64Example:
"testuser123"
Account password
Maximum string length:
256Example:
"securepass123"
If true, account is restricted to host functionality only
Example:
true
Parent account ID for subaccounts. Use "me" for current user.
Example:
"me"
Optional SSH public key
Maximum string length:
4096Captcha token (required for non-subaccounts)
Maximum string length:
8192