# Get organizations

URL: https://docs.hanzo.ai/docs/openapi/iam/getorganization

> Returns one organization: its display, its defaults and the sign-in rules everyone in it inherits.

`GET /v1/iam/organizations/{owner}/{name}`

> [IAM →](https://docs.hanzo.ai/docs/openapi/iam) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                                            |
| ------------- | ---------------------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/iam/organizations/{owner}/{name}` |
| **Method**    | `GET`                                                      |
| **Operation** | `getOrganization`                                          |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`                     |

Returns one organization: its display, its defaults and the sign-in rules
everyone in it inherits.

## Request

2 fields.

| Field   | In   | Type   | Required | Description |
| ------- | ---- | ------ | -------- | ----------- |
| `owner` | path | string | yes      |             |
| `name`  | path | string | yes      |             |

## Response

| Status    | Body             | Meaning           |
| --------- | ---------------- | ----------------- |
| `200`     | iam.Organization | ok                |
| `202`     | Approval         | held for approval |
| `default` | problem-details  | refused           |

`200` body — 75 fields.

| Field                       | In   | Type               | Always | Description                                                                                                                                               |
| --------------------------- | ---- | ------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accountItems`              | body | iam.AccountItem\[] | —      |                                                                                                                                                           |
| `accountItems[].modifyRule` | body | string             | —      |                                                                                                                                                           |
| `accountItems[].name`       | body | string             | —      |                                                                                                                                                           |
| `accountItems[].regex`      | body | string             | —      |                                                                                                                                                           |
| `accountItems[].tab`        | body | string             | —      |                                                                                                                                                           |
| `accountItems[].viewRule`   | body | string             | —      |                                                                                                                                                           |
| `accountItems[].visible`    | body | boolean            | —      |                                                                                                                                                           |
| `accountMenu`               | body | string             | —      |                                                                                                                                                           |
| `avatar`                    | body | string             | —      | How the organization appears across Hanzo — the square mark beside its name — as an image or as one emoji, never both.                                    |
| `balanceCredit`             | body | number (double)    | —      |                                                                                                                                                           |
| `balanceCurrency`           | body | string             | —      |                                                                                                                                                           |
| `countryCodes`              | body | string\[]          | —      |                                                                                                                                                           |
| `createdAt`                 | body | string (date-time) | —      |                                                                                                                                                           |
| `createdTime`               | body | string             | —      |                                                                                                                                                           |
| `dcrPolicy`                 | body | string             | —      |                                                                                                                                                           |
| `defaultApplication`        | body | string             | —      |                                                                                                                                                           |
| `defaultAvatar`             | body | string             | —      |                                                                                                                                                           |
| `defaultPassword`           | body | string             | —      |                                                                                                                                                           |
| `deleted`                   | body | boolean            | —      |                                                                                                                                                           |
| `disableSignin`             | body | boolean            | —      |                                                                                                                                                           |
| `displayName`               | body | string             | —      |                                                                                                                                                           |
| `emoji`                     | body | string             | —      |                                                                                                                                                           |
| `enableSoftDeletion`        | body | boolean            | —      |                                                                                                                                                           |
| `enableTour`                | body | boolean            | —      |                                                                                                                                                           |
| `failedSigninFrozenTime`    | body | integer (int64)    | —      |                                                                                                                                                           |
| `failedSigninLimit`         | body | integer (int64)    | —      | Per-organization signin throttle.                                                                                                                         |
| `favicon`                   | body | string             | —      |                                                                                                                                                           |
| `founder`                   | body | string             | —      | Founder is the stable storage id of the identity that provisioned this org (self-service onboarding).                                                     |
| `hasPrivilegeConsent`       | body | boolean            | —      |                                                                                                                                                           |
| `id`                        | body | string             | —      |                                                                                                                                                           |
| `initScore`                 | body | integer (int64)    | —      |                                                                                                                                                           |
| `ipRestriction`             | body | string             | —      |                                                                                                                                                           |
| `ipWhitelist`               | body | string             | —      |                                                                                                                                                           |
| `isPersonal`                | body | boolean            | —      |                                                                                                                                                           |
| `isProfilePublic`           | body | boolean            | —      |                                                                                                                                                           |
| `kerberosKdcHost`           | body | string             | —      |                                                                                                                                                           |
| `kerberosKeytab`            | body | string             | —      |                                                                                                                                                           |
| `kerberosRealm`             | body | string             | —      |                                                                                                                                                           |
| `kerberosServiceName`       | body | string             | —      |                                                                                                                                                           |
| `languages`                 | body | string\[]          | —      |                                                                                                                                                           |
| `ldapAttributes`            | body | string\[]          | —      |                                                                                                                                                           |
| `logo`                      | body | string             | —      |                                                                                                                                                           |
| `logoDark`                  | body | string             | —      |                                                                                                                                                           |
| `masterPassword`            | body | string             | —      |                                                                                                                                                           |
| `masterVerificationCode`    | body | string             | —      |                                                                                                                                                           |
| `mfaItems`                  | body | iam.MfaItem\[]     | —      |                                                                                                                                                           |
| `mfaItems[].name`           | body | string             | —      |                                                                                                                                                           |
| `mfaItems[].rule`           | body | string             | —      |                                                                                                                                                           |
| `mfaRememberInHours`        | body | integer (int64)    | —      |                                                                                                                                                           |
| `name`                      | body | string             | —      |                                                                                                                                                           |
| `navItems`                  | body | string\[]          | —      |                                                                                                                                                           |
| `orgBalance`                | body | number (double)    | —      | Balance fields are read-only mirrors; authoritative balances live in Commerce (billing.hanzo.ai).                                                         |
| `owner`                     | body | string             | —      |                                                                                                                                                           |
| `passwordExpireDays`        | body | integer (int64)    | —      |                                                                                                                                                           |
| `passwordObfuscatorKey`     | body | string             | —      |                                                                                                                                                           |
| `passwordObfuscatorType`    | body | string             | —      |                                                                                                                                                           |
| `passwordOptions`           | body | string\[]          | —      |                                                                                                                                                           |
| `passwordSalt`              | body | string             | —      |                                                                                                                                                           |
| `passwordType`              | body | string             | —      |                                                                                                                                                           |
| `platform`                  | body | boolean            | —      | Platform marks an organization the platform itself declares (init\_data.json): the brand orgs and the others the seed creates, never one a customer made. |
| `tags`                      | body | string\[]          | —      |                                                                                                                                                           |
| `themeData`                 | body | iam.ThemeData      | —      |                                                                                                                                                           |
| `themeData.borderRadius`    | body | integer (int64)    | —      |                                                                                                                                                           |
| `themeData.colorPrimary`    | body | string             | —      |                                                                                                                                                           |
| `themeData.isCompact`       | body | boolean            | —      |                                                                                                                                                           |
| `themeData.isEnabled`       | body | boolean            | —      |                                                                                                                                                           |
| `themeData.themeType`       | body | string             | —      |                                                                                                                                                           |
| `updatedAt`                 | body | string (date-time) | —      |                                                                                                                                                           |
| `useEmailAsUsername`        | body | boolean            | —      |                                                                                                                                                           |
| `usePermanentAvatar`        | body | boolean            | —      |                                                                                                                                                           |
| `userBalance`               | body | number (double)    | —      |                                                                                                                                                           |
| `userNavItems`              | body | string\[]          | —      |                                                                                                                                                           |
| `userTypes`                 | body | string\[]          | —      |                                                                                                                                                           |
| `websiteUrl`                | body | string             | —      |                                                                                                                                                           |
| `widgetItems`               | body | string\[]          | —      |                                                                                                                                                           |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo iam organizations owner get <owner> <name>
```

**SDK**

**.ts**

```ts
import { Configuration, IamApi } from 'hanzoai';

const api = new IamApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getOrganization({ owner: 'owner', name: 'name' });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import IamApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = IamApi(client).get_organization(owner='owner', name='name')
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.IamAPI.GetOrganization(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, iam_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = iam_api::get_organization(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.IamApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new IamApi(client).getOrganization();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/iam/organizations/<owner>/<name> \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

Tool `iam`, op `getOrganization` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "iam",
         "arguments": {
           "op": "getOrganization",
           "input": {
             "owner": "<owner>",
             "name": "<name>"
           }
         }
       }
     }'
```

---

[IAM API](https://docs.hanzo.ai/docs/openapi/iam) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
