createAccount
POST
/accounts https://api.netlify.com/api/v1
Request Body
application/json
required
interface AccountSetup {
name: string;
type_id: string;
payment_method_id?: string;
period?: "monthly" | "yearly";
extra_seats_block?: number;
}
name: string;
type_id: string;
payment_method_id?: string;
period?: "monthly" | "yearly";
extra_seats_block?: number;
}
Responses
201 application/json
Created
interface AccountMembership {
id?: string;
name?: string;
slug?: string;
type?: string;
capabilities?: { sites?:AccountUsageCapability ;collaborators?: AccountUsageCapability ; };
billing_name?: string;
billing_email?: string;
billing_details?: string;
billing_period?: string;
payment_method_id?: string;
type_name?: string;
type_id?: string;
owner_ids?: string[];
roles_allowed?: string[];
created_at?: string;
updated_at?: string;
}
id?: string;
name?: string;
slug?: string;
type?: string;
capabilities?: { sites?:
billing_name?: string;
billing_email?: string;
billing_details?: string;
billing_period?: string;
payment_method_id?: string;
type_name?: string;
type_id?: string;
owner_ids?: string[];
roles_allowed?: string[];
created_at?: string;
updated_at?: string;
}
default application/json
error
interface Error {
code?: number;
message: string;
}
code?: number;
message: string;
}