---
title: "Create a new database"
method: POST
path: "/databases"
tags: ["Databases"]
---

# Create a new database

`POST /databases`

## Request body

- CreateDatabaseRequest
  - `company_id` string, required
  - `location` string, required — the location (data center) where the database will be created
  - `resource_type` 'db1' | 'db2' | 'db3' | 'db4' | 'db5' | 'db6' | 'db7' | 'db8' | 'db9', required — the resource type (database size) to be created
  - `display_name` string, required
  - `db_name` string, required
  - `db_password` string, required
  - `db_user` string — Only optional for Redis. Required for all other types.
  - `type` 'postgresql' | 'redis' | 'mariadb' | 'mysql', required
  - `version` string, required

## Response `200`

Response object of create database request

## Other responses

- `401` — No or invalid API key provided to the request
- `404` — Could not find the company or the user does not have permissions to create a database
- `500` — Error occurred while creating database

---

[API](https://skmtc.net/sevalla/apis/sevalla-api.md) · [All operations](https://skmtc.net/sevalla/apis/sevalla-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sevalla/sevalla-api/revisions/ab648a80ca4d/schema)
