> ## Documentation Index
> Fetch the complete documentation index at: https://docs.overhyped.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# initOrg - Initializes the Organization

### `initOrg` : OverhypedAI("initOrg", orgKey, options?)

This method should be called only once when any user comes to the platform to initialize the organization with OverhypedAI.

```typescript theme={"system"}
// NOTE: This is an optional parameter.
const options = {
    /**
    * This is used to specify whether to connect the user
    * directly when the initUser command is called. If set to false,
    * you need to connect the user explicitly using OverhypedAI("connect")
    *
    * Defaults to true.
    */
    autoConnect?: boolean
}
```

```typescript {3} theme={"system"}
import OverhypedAI from '@overhyped-ai/connect/OverhypedAI';

OverhypedAI("initOrg", "ORG_TOKEN", options)
```

Initializes the organization for connection. Params:

<Tip>Tag (Optional) is added for non-mandatory fields</Tip>

* `orgKey: string` : A unique token given at the time of organization onboarding.
* `options: object` (Optional): Additional options to customize.
  * `autoConnect: boolean = true` (Optional): Specifies whether to connect the user directly when the `initUser` command is called. If set to false, you need to connect the user explicitly using `OverhypedAI("connect")`.
