# Create database connection string (/docs/management-api/endpoints/databases-connections/post-databases-by-database-id-connections)

Location: Management API > Endpoints > Databases Connections > Create database connection string

Creates a new connection string for the given database.

## API reference

### Create database connection string

`POST /v1/databases/{databaseId}/connections`

Creates a new connection string for the given database.

#### Parameters

- `databaseId` (path, string, required)

#### Request body

- `name` (string, required)

#### Responses

- `200`: Created a new connection string for the database.
- `401`: Missing or invalid authorization token.
- `404`: Database with the given ID was not found.

## Related pages

- [`Get list of database connections`](https://www.prisma.io/docs/management-api/endpoints/databases-connections/get-databases-by-database-id-connections): Returns all connections for the given database.