# accountInferencePolicy

```graphql
query AccountInferencePolicy($input: AccountInferencePolicyInput!) {
  accountInferencePolicy(input: $input) {
    accountId
    models {
      allowed
      denied
    }
    defaultModel
  }
}
```

Get account inference policy. Requires account.settings.manage.

## Arguments

| Name              | Type                         | Required | Description |
| ----------------- | ---------------------------- | -------- | ----------- |
| `input`           | AccountInferencePolicyInput! | Yes      |             |
| `input.accountId` | ID!                          | Yes      |             |

## Variables

```json
{
  "input": {
    "accountId": "string"
  }
}
```

## Responses

| Status | Description                                                 |
| ------ | ----------------------------------------------------------- |
| 200    | The AccountInferencePolicy! in data.accountInferencePolicy. |

## 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 AccountInferencePolicy($input: AccountInferencePolicyInput!) {\n  accountInferencePolicy(input: $input) {\n    accountId\n    models {\n      allowed\n      denied\n    }\n    defaultModel\n  }\n}",
  "variables": {
    "input": {
      "accountId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "accountInferencePolicy": {
      "accountId": "string",
      "models": {
        "allowed": [
          "string"
        ],
        "denied": [
          "string"
        ]
      },
      "defaultModel": "string"
    }
  }
}
```
