v1
latestOpenAPI 3.1.02026-07-13897404.3 KBAccounts
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/api/v0/users/
Request body
Example request
{
"email": "user@example.com",
"username": "testuser123",
"password": "securepass123",
"host_only": true,
"parent_id": "me"
}Response
Account created successfully
Example response
{
"id": 12345,
"username": "testuser",
"email": "user@example.com",
"key_id": 67890
}