# InteractionProcessCredential

A model provider API key a run was started with (the key itself is never returned). For each call the run tries these keys in `priority` order, then your tenant's model keys, and moves on to the next when one fails authentication or hits a quota.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `provider` | `string` | The model provider the key is for, as given when the run started: a model-key provider name such as `Anthropic`, `OpenAi` or `Qwen`, or an inline model's `credentialProvider`. |
| `baseUrl` | `string \| null` | The endpoint to call with this key, such as a regional Qwen host or an Azure resource. Null: the provider's default. |
| `modelNameOverrides` | `map<string, string> \| null` | Catalogue model names mapped to the model or deployment id this key's endpoint uses for them, such as an Azure deployment name. Null or empty: the catalogue's ids are used as they are. |
| `credentialId` | `string` | Your own id for the key. The run's token usage and credential failures carry it, so you can tell which key served or failed a call. |
| `isOwnLicense` | `boolean` | True for a key of your own, which the provider bills you for directly. Only such keys are used. |
| `priority` | `integer` | The order keys for the same provider are tried in: lowest first. |

## Example

```json
{
  "provider": "...",
  "baseUrl": "...",
  "modelNameOverrides": {
    "key": "..."
  },
  "credentialId": "...",
  "isOwnLicense": false,
  "priority": 0
}
```

## Where it's used

- Inside [`AppProcess`](https://docs.maitento.com/reference/types/app-process.md)
- Inside [`AppProcessWithDetails`](https://docs.maitento.com/reference/types/app-process-with-details.md)
- Inside [`InteractionProcess`](https://docs.maitento.com/reference/types/interaction-process.md)
- Inside [`InteractionProcessWithDetails`](https://docs.maitento.com/reference/types/interaction-process-with-details.md)
