Connections

Get list of database connections

Returns all connections for the given database.

GET/v1/databases/{databaseId}/connections
AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

Path Parameters

databaseId*string
Match^(db_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Query Parameters

cursor?|

Cursor for pagination

limit?number

Limit for pagination

Default100

Response Body

application/json

application/json

curl -X GET "https://api.prisma.io/v1/databases/string/connections"
{
  "data": [
    {
      "id": "string",
      "type": "connection",
      "name": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "directConnection": {
        "host": "string",
        "pass": "string",
        "user": "string"
      },
      "database": {
        "id": "string",
        "name": "string"
      }
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}