# Create database (/docs/management-api/endpoints/databases/post-databases)

Location: Management API > Endpoints > Databases > Create database

Creates a new database in the specified project.

## API reference

### Create database

`POST /v1/databases`

Creates a new database in the specified project.

#### Request body

- `projectId` (string, required): ID of the project to create the database in
- `region` (string, optional): Region for the database. Use "inherit" to use the project default database region. Default: `us-east-1`.
- `name` (string, optional): Display name for the database
- `isDefault` (boolean, optional): Whether this is the default database Default: `false`.
- `source` (optional): Source to create the database from. Omit to create an empty database.
- `branchId` (string | null, optional)
- `branchGitName` (string | null, optional)

#### Responses

- `201`: Created a new database.
- `400`: Invalid request parameters.
- `401`: Missing or invalid authorization token.
- `403`: Actor does not have access to the specified project.
- `404`: Project not found.

## Related pages

- [`Create database`](https://www.prisma.io/docs/management-api/endpoints/databases/post-projects-by-project-id-databases): Creates a new database for the given project.
- [`Delete database`](https://www.prisma.io/docs/management-api/endpoints/databases/delete-databases-by-database-id): Deletes the database with the given ID.
- [`Get database`](https://www.prisma.io/docs/management-api/endpoints/databases/get-databases-by-database-id): Returns the database with the given ID.
- [`Get list of databases`](https://www.prisma.io/docs/management-api/endpoints/databases/get-projects-by-project-id-databases): Returns databases for the given project.
- [`List databases`](https://www.prisma.io/docs/management-api/endpoints/databases/get-databases): Returns all databases the token has access to. Optionally filter by project ID.