---
title: "CreateDatabaseBody"
description: "Request body for creating a Database."
section: "Reference"
group: "Types"
order: 58
---

## Definition

```ts
interface CreateDatabaseBody {
  workspaceId: string;
  name: string;
  slug?: string | undefined;
  description?: string | undefined;
  kind?: "d1" | undefined;
}
```

## Fields

| Field         | Type                  | Notes                                                                     |
| ------------- | --------------------- | ------------------------------------------------------------------------- |
| `workspaceId` | `string`              | `required` — Workspace that will own the new database.                    |
| `name`        | `string`              | `required` — Human-friendly database name                                 |
| `slug`        | `string \| undefined` | `optional` — URL/code-friendly slug (auto-generated from name if omitted) |
| `description` | `string \| undefined` | `optional` — Optional description                                         |
| `kind`        | `"d1" \| undefined`   | `optional` — Backend kind. Defaults to d1.                                |
