# Account

URL: https://developers.cloud66.com/v3/models/account/

Accounts represent organizational units in Cloud 66 that own and manage stacks. Users can belong to multiple accounts and have different roles within each account.

<Model>
    <ModelProperty name="id" type="integer">
        Unique account identifier
    </ModelProperty>
    <ModelProperty name="owner" type="string | null">
        Email address of the account owner
    </ModelProperty>
    <ModelProperty name="created_at_iso" type="string">
        Account creation timestamp in ISO8601 format
    </ModelProperty>
    <ModelProperty name="updated_at_iso" type="string">
        Last modification timestamp in ISO8601 format
    </ModelProperty>
    <ModelProperty name="stack_count" type="integer">
        Number of stacks associated with this account
    </ModelProperty>
    <ModelProperty name="used_clouds" type="array<string>">
        List of cloud provider names used by this account's stacks
    </ModelProperty>
    <ModelProperty name="current_account" type="boolean">
        True if this account matches the user's primary account
    </ModelProperty>
    <ModelProperty name="friendly_name" type="string">
        Human-readable account name set by the user
    </ModelProperty>
    <ModelProperty name="unmanaged_servers" type="array | null">
        List of unmanaged cloud servers (only when include_servers=true and account is primary)
    </ModelProperty>
    <ModelProperty name="server_registration_script" type="string">
        Shell command for registering new servers to this account
    </ModelProperty>
    <ModelProperty name="configstore_namespace" type="string">
        UUID for the account's configuration store namespace
    </ModelProperty>
</Model>

## Example

```json
{
  "id": 12345,
  "owner": "john@example.com",
  "created_at_iso": "2023-01-15T10:30:00Z",
  "updated_at_iso": "2024-02-20T14:45:00Z",
  "stack_count": 8,
  "used_clouds": ["aws", "digitalocean", "azure"],
  "current_account": true,
  "friendly_name": "Production Environment",
  "unmanaged_servers": [
    {
      "id": 67890,
      "name": "web-server-01",
      "ip": "192.168.1.100"
    }
  ],
  "server_registration_script": "curl -sSL https://app.cloud66.com/registrations/new | sudo bash -s abc123def456",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000"
}
```
