# connectionStatus

```graphql
query ConnectionStatus($projectReference: ID!, $name: String!, $scope: ConnectionScope!) {
  connectionStatus(projectReference: $projectReference, name: $name, scope: $scope) {
    integration
    scope
    connected
    connectionId
    connectionGenerationId
  }
}
```

Return connection status. Requires project.integrations.read.

## Arguments

| Name               | Type             | Required | Description                                                                                                                                                                                                                                                    |
| ------------------ | ---------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectReference` | ID!              | Yes      | Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not\_found.                                                                                                                            |
| `name`             | String!          | Yes      | Integration name, for example github.                                                                                                                                                                                                                          |
| `scope`            | ConnectionScope! | Yes      | Connection owner to inspect. Requires viewer access to the project. API keys are refused user scope with forbidden. Verified user-session or API-key credentials are required; MCP OAuth grants and runtime credentials are refused. One of `user`, `project`. |

## Variables

```json
{
  "projectReference": "string",
  "name": "string",
  "scope": "user"
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The ConnectionStatus! in data.connectionStatus. |

## 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 ConnectionStatus($projectReference: ID!, $name: String!, $scope: ConnectionScope!) {\n  connectionStatus(projectReference: $projectReference, name: $name, scope: $scope) {\n    integration\n    scope\n    connected\n    connectionId\n    connectionGenerationId\n  }\n}",
  "variables": {
    "projectReference": "string",
    "name": "string",
    "scope": "user"
  }
}'
```

## Example response

```json
{
  "data": {
    "connectionStatus": {
      "integration": "string",
      "scope": "user",
      "connected": false,
      "connectionId": "string",
      "connectionGenerationId": "string"
    }
  }
}
```
