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

# Create a workspace

> Provision a new tenant.

## Body

<ParamField body="name" type="string" required />

<ParamField body="domain" type="string" />

<ParamField body="metadata" type="object" />

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  const ws = await hk.workspaces.create({ name: "Acme University" });
  ```

  ```php PHP theme={null}
  $ws = $hk->workspaces->create(['name' => 'Acme University']);
  ```
</CodeGroup>

## Returns

The new [Workspace](/api-reference/workspaces/object).
