# connections

```graphql
query Connections($input: ConnectionListInput!) {
  connections(input: $input) {
    data {
      id
      connectionGenerationId
      userId
      integration
      scope
      displayName
      canDisconnect
      canReconnect
      createdAt
      updatedAt
      status
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      prev
    }
    total
  }
}
```

List connections across projects.

## Arguments

| Name                | Type                 | Required | Description |
| ------------------- | -------------------- | -------- | ----------- |
| `input`             | ConnectionListInput! | Yes      |             |
| `input.integration` | String               |          |             |
| `input.cursor`      | String               |          |             |
| `input.limit`       | Int                  |          |             |
| `input.sortBy`      | String               |          |             |
| `input.sortOrder`   | String               |          |             |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The ManagedConnectionList! in data.connections. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query Connections($input: ConnectionListInput!) {\n  connections(input: $input) {\n    data {\n      id\n      connectionGenerationId\n      userId\n      integration\n      scope\n      displayName\n      canDisconnect\n      canReconnect\n      createdAt\n      updatedAt\n      status\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      prev\n    }\n    total\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "connections": {
      "data": [
        {
          "id": "string",
          "connectionGenerationId": "string",
          "userId": "string",
          "integration": "string",
          "scope": "string",
          "displayName": "string",
          "canDisconnect": false,
          "canReconnect": false,
          "createdAt": "string",
          "updatedAt": "string",
          "status": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "prev": "string"
      },
      "total": 0
    }
  }
}
```
