# Create connection (/docs/management-api/endpoints/connections/post-connections)

Location: Management API > Endpoints > Connections > Create connection

Creates a new connection for the specified database.

## API reference

### Create connection

`POST /v1/connections`

Creates a new connection for the specified database.

#### Request body

- `databaseId` (string, required)
- `name` (string, required)

#### Responses

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

## Related pages

- [`Delete connection`](https://www.prisma.io/docs/management-api/endpoints/connections/delete-connections-by-id): Deletes the connection with the given ID.
- [`Get connection`](https://www.prisma.io/docs/management-api/endpoints/connections/get-connections-by-id): Returns the connection with the given ID.
- [`List connections`](https://www.prisma.io/docs/management-api/endpoints/connections/get-connections): Returns all connections the actor has access to, with optional database filter.
- [`Rotate connection credentials`](https://www.prisma.io/docs/management-api/endpoints/connections/post-connections-by-id-rotate): Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort.