# Get database (/docs/management-api/endpoints/databases/get-databases-by-database-id)

Location: Management API > Endpoints > Databases > Get database

Returns the database with the given ID.

## API reference

### Get database

`GET /v1/databases/{databaseId}`

Returns the database with the given ID.

#### Parameters

- `databaseId` (path, string, required)

#### Responses

- `200`: Returned the database with the given ID.
- `401`: Missing or invalid authorization token.
- `403`: Actor does not have access to the database.
- `404`: Database with the given ID was not found.

## Related pages

- [`Create database`](https://www.prisma.io/docs/management-api/endpoints/databases/post-databases): Creates a new database in the specified project.
- [`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 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.