# integrations

```graphql
query Integrations {
  integrations {
    data {
      name
      displayName
      icon
      description
      authType
      toolCount
      promptCount
      iconUrl
      category
      availability
    }
    total
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List the integrations.

## Arguments

| Name                 | Type                  | Required | Description                                                                                                                                               |
| -------------------- | --------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`              | ListIntegrationsInput |          |                                                                                                                                                           |
| `input.search`       | String                |          | Search query to filter integrations                                                                                                                       |
| `input.limit`        | Int                   |          | Number of results per page (default: 20, max: 100)                                                                                                        |
| `input.cursor`       | String                |          | Cursor for pagination                                                                                                                                     |
| `input.availability` | \[String!]            |          | Only integrations with one of these availabilities: default, experimental or host\_adapter. At most 16 values.                                            |
| `input.authType`     | \[String!]            |          | Only integrations with one of these authentication types: oauth2, oauth1, api-key or basic. At most 16 values.                                            |
| `input.category`     | \[String!]            |          | Only integrations in one of these categories. Integrations without a category match no value. At most 16 values of lowercase letters, digits and hyphens. |
| `input.sortBy`       | String                |          | Sort field. Only name: the display name, ties by integration name ascending.                                                                              |
| `input.sortOrder`    | String                |          | Sort order, asc or desc. Defaults to asc.                                                                                                                 |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The IntegrationsPayload! in data.integrations. |

## 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 Integrations {\n  integrations {\n    data {\n      name\n      displayName\n      icon\n      description\n      authType\n      toolCount\n      promptCount\n      iconUrl\n      category\n      availability\n    }\n    total\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "integrations": {
      "data": [
        {
          "name": "string",
          "displayName": "string",
          "icon": "string",
          "description": "string",
          "authType": "string",
          "toolCount": 0,
          "promptCount": 0,
          "iconUrl": "https://example.com",
          "category": "string",
          "availability": "string"
        }
      ],
      "total": 0,
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
