# agentTemplates

```graphql
query AgentTemplates {
  agentTemplates {
    data {
      id
      agentId
      kind
      name
      description
      avatarUrl
      categoryId
      categoryLabel
      projectReference
      providerName
      providerUrl
      model
      version
      tools
      suggestions
      actions
      origin
      runtimeMode
      runtimeServiceKey
      environmentScope
      card
    }
    total
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List agent templates.

## Arguments

| Name              | Type                | Required | Description |
| ----------------- | ------------------- | -------- | ----------- |
| `input`           | AgentTemplatesInput |          |             |
| `input.cursor`    | String              |          |             |
| `input.limit`     | Int                 |          |             |
| `input.search`    | String              |          |             |
| `input.category`  | String              |          |             |
| `input.kind`      | String              |          |             |
| `input.origin`    | String              |          |             |
| `input.sortBy`    | String              |          |             |
| `input.sortOrder` | String              |          |             |

## Responses

| Status | Description                                          |
| ------ | ---------------------------------------------------- |
| 200    | The AgentTemplateConnection! in data.agentTemplates. |

## 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 AgentTemplates {\n  agentTemplates {\n    data {\n      id\n      agentId\n      kind\n      name\n      description\n      avatarUrl\n      categoryId\n      categoryLabel\n      projectReference\n      providerName\n      providerUrl\n      model\n      version\n      tools\n      suggestions\n      actions\n      origin\n      runtimeMode\n      runtimeServiceKey\n      environmentScope\n      card\n    }\n    total\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "agentTemplates": {
      "data": [
        {
          "id": "string",
          "agentId": "string",
          "kind": "string",
          "name": "string",
          "description": "string",
          "avatarUrl": "https://example.com",
          "categoryId": "string",
          "categoryLabel": "string",
          "projectReference": "string",
          "providerName": "string",
          "providerUrl": "https://example.com",
          "model": "string",
          "version": "string",
          "tools": [
            "string"
          ],
          "suggestions": {},
          "actions": [
            "string"
          ],
          "origin": "string",
          "runtimeMode": "string",
          "runtimeServiceKey": "string",
          "environmentScope": "string",
          "card": {}
        }
      ],
      "total": 0,
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
