# projectIntegration

```graphql
query ProjectIntegration($projectReference: String!, $name: String!) {
  projectIntegration(projectReference: $projectReference, name: $name) {
    name
    configured
    createdAt
    updatedAt
    displayName
    icon
    description
    authType
    toolCount
    promptCount
    connectedForProject
    scope
    allowedTools
    config
    executionMode
    projectConnections {
      connected
      expired
      disconnected
    }
    projectUserConnections {
      connected
      expired
      disconnected
    }
    resolution {
      catalogAvailable
      catalogState
    }
    configSchema
  }
}
```

Read the settings of a project for one integration to show or check its scope, allowed tools, configuration, execution mode and connection counts; returns the project integration, with configured false and the defaults when no settings are stored. Requires project.integrations.read.

## Arguments

| Name               | Type    | Required | Description |
| ------------------ | ------- | -------- | ----------- |
| `projectReference` | String! | Yes      |             |
| `name`             | String! | Yes      |             |

## Variables

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

## Responses

| Status | Description                                                |
| ------ | ---------------------------------------------------------- |
| 200    | The ManagedProjectIntegration! in data.projectIntegration. |

## 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 ProjectIntegration($projectReference: String!, $name: String!) {\n  projectIntegration(projectReference: $projectReference, name: $name) {\n    name\n    configured\n    createdAt\n    updatedAt\n    displayName\n    icon\n    description\n    authType\n    toolCount\n    promptCount\n    connectedForProject\n    scope\n    allowedTools\n    config\n    executionMode\n    projectConnections {\n      connected\n      expired\n      disconnected\n    }\n    projectUserConnections {\n      connected\n      expired\n      disconnected\n    }\n    resolution {\n      catalogAvailable\n      catalogState\n    }\n    configSchema\n  }\n}",
  "variables": {
    "projectReference": "string",
    "name": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "projectIntegration": {
      "name": "string",
      "configured": false,
      "createdAt": "string",
      "updatedAt": "string",
      "displayName": "string",
      "icon": "string",
      "description": "string",
      "authType": "string",
      "toolCount": 0,
      "promptCount": 0,
      "connectedForProject": false,
      "scope": "string",
      "allowedTools": [
        "string"
      ],
      "config": {},
      "executionMode": "string",
      "projectConnections": {
        "connected": 0,
        "expired": 0,
        "disconnected": 0
      },
      "projectUserConnections": {
        "connected": 0,
        "expired": 0,
        "disconnected": 0
      },
      "resolution": {
        "catalogAvailable": false,
        "catalogState": "string"
      },
      "configSchema": {}
    }
  }
}
```
