---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / createAccountManagerOrgsClient

# Function: createAccountManagerOrgsClient()

> **createAccountManagerOrgsClient**(`config`, `auth`): [`AccountManagerOrgsClient`](../interfaces/AccountManagerOrgsClient.md)

Defined in: [packages/b2c-tooling-sdk/src/clients/am-api.ts:1004](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/am-api.ts#L1004)

Creates an Account Manager Organizations API client.

## Parameters

### config

[`AccountManagerClientConfig`](../interfaces/AccountManagerClientConfig.md)

Account Manager Organizations client configuration

### auth

[`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

Authentication strategy (typically OAuth)

## Returns

[`AccountManagerOrgsClient`](../interfaces/AccountManagerOrgsClient.md)

Organizations API client

## Example

```ts
const oauthStrategy = new OAuthStrategy({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

const client = createAccountManagerOrgsClient({}, oauthStrategy);

// List organizations
const orgs = await client.listOrgs({ size: 25, page: 0 });

// Get organization by ID
const org = await client.getOrg('org-id');
```
