---
title: "Create a database (Database API)"
description: ""
canonical: "https://docs.softr.io/api/databases/create-database"
updated: "2026-12-04"
---

# Create a database (Database API)



```http
POST https://tables-api.softr.io/api/v1/databases
```

## Authorizations

- `Softr-Api-Key` (API key, in header, required)

## Body

`application/json`, required

- `workspaceId` (`string`, required)
- `name` (`string`, required)
- `description` (`string`)

## Response

**200**: The newly created database.

- `data` (`object`)
- `data.id` (`string`)
- `data.name` (`string`)
- `data.description` (`string | null`)
- `data.workspaceId` (`string`)
- `data.tablesCount` (`integer`): Number of tables in this database.
- `data.createdAt` (`string<date-time>`)
- `data.updatedAt` (`string<date-time>`)

```json
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "workspaceId": "<string>",
    "tablesCount": 123,
    "createdAt": "2024-01-01T00:00:00Z",
    "updatedAt": "2024-01-01T00:00:00Z"
  }
}
```

**429**: Rate limit exceeded.

No response body.

**Example request**

```bash
curl --request POST \
  --url 'https://tables-api.softr.io/api/v1/databases' \
  --header 'Softr-Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "name": "<string>"
}'
```
